On the screen

Maps and location

Maps turn up in more products than you might expect: a store finder, a delivery area, a driver moving towards your door, a pin dropped at checkout. Behind each one sit a few separate jobs: drawing the map, turning addresses into coordinates, working out routes and knowing where the user is right now.

Map providers such as Google Maps and Mapbox bundle those jobs as paid services with free monthly allowances. Leaflet and OpenStreetMap are the open alternative: a free library and free map data, with the map images (tiles) served by a provider or your own server. The phone or browser supplies the device's own position.

9 terms · 1 comparison · prices checked September 2026

9 terms, click any to open

Map providers

Google Maps Platform

ServicePay as you go
Google's paid set of map services for apps and websites: interactive maps, address search, places, directions and more, built on the same data as Google Maps.

Google Maps Platform is split into products: Maps (the JavaScript API for the web, native SDKs for Android and iOS, static and embedded maps), Places (search, autocomplete and details for businesses and addresses), Routes (directions, travel times and route optimisation) and extras such as Street View, elevation and air quality. Every request uses an API key tied to a Google Cloud project with billing switched on, even when usage stays inside the free allowance.

Its strengths are data and familiarity: places, opening hours, reviews and address autocomplete are hard for other providers to match. Pricing is per request, grouped by product into Essentials, Pro and Enterprise tiers, each with a free monthly cap, while embedded maps and map loads in the mobile SDKs are free. The terms restrict caching results and showing Google data on non-Google maps, which makes mixing providers harder. Accounts in India have a separate, lower price list billed in rupees.

Pros

  • Rich places data, addresses and autocomplete worldwide
  • A familiar look that users already know and trust
  • One provider for maps, search, directions and Street View
  • Free map loads in the Android and iOS SDKs and for embeds

Cons

  • Web bills can climb quickly as traffic grows
  • A billing account is required even for free usage
  • Terms limit caching and mixing with other map providers
  • Less control over the map's look than Mapbox

Pick it when

  • Address search and autocomplete at checkout or sign-up
  • Apps that depend on local business and places data
  • Delivery and ride apps that need traffic-aware directions

Skip it when

  • Custom-styled or data-heavy maps, where Mapbox gives more control
  • High web map traffic on a tight budget, where OpenStreetMap-based tiles cost less

What it costs · Pay as you go

Each product has a free monthly cap (10,000 web map loads; mobile SDK maps unlimited), then about $7 per 1,000 web map loads and $5 per 1,000 geocodes. Fixed monthly plans from $100; lower prices in India.

Google Maps Platform pricing (opens in a new tab)Approximate, checked September 2026.

Also called: Google Maps API, Maps JavaScript API, Places API, Routes API, Google Maps SDK

Open Google Maps Platform as a pageOfficial site (opens in a new tab)

Mapbox

ServicePay as you go
A map platform for developers known for fully custom map styles, smooth vector maps and a large free allowance, with search and directions APIs alongside.

Mapbox serves vector tiles built largely from OpenStreetMap plus its own data, and its libraries (Mapbox GL JS on the web, native SDKs for Android and iOS) draw them on the device with WebGL. Maps can rotate, tilt and zoom smoothly, show 3D buildings and terrain, and take on any look designed in Mapbox Studio, from brand colours to hiding every label except roads. Geocoding, search, directions, matrix and navigation APIs cover the rest.

Billing counts web map loads (each time a map starts up on a page) and monthly active users in mobile apps, with large free allowances. Since version 2, Mapbox GL JS has used a proprietary licence and needs a Mapbox account even when showing other tiles; the community fork MapLibre GL JS stays open source and works with any vector tile provider.

Pros

  • Complete control over the map's look in Mapbox Studio
  • Smooth vector maps with 3D terrain and buildings
  • A larger free web allowance than Google Maps
  • Well suited to drawing large datasets on a map

Cons

  • Places and business data is thinner than Google's
  • The proprietary SDK licence ties maps to a Mapbox account
  • Many separately priced APIs make bills harder to predict

Pick it when

  • Maps that must match a brand or product design
  • Dashboards, fleet tracking and data layers on a map
  • Mobile apps with offline maps or turn-by-turn navigation

Skip it when

  • Searching local businesses and points of interest is the core feature
  • The stack must be open source end to end (MapLibre fits that)

What it costs · Pay as you go

Free each month: 50,000 web map loads, 25,000 mobile users and 100,000 geocoding requests. Then about $5 per 1,000 map loads and $4 per 1,000 mobile users, falling with volume.

Mapbox pricing (opens in a new tab)Approximate, checked September 2026.

Also called: Mapbox GL JS, Mapbox Studio, Mapbox SDK, MapLibre

Open Mapbox as a pageOfficial site (opens in a new tab)

Leaflet

LibraryOpen source
A small, free JavaScript library for interactive maps on websites. It draws the map from tiles you choose, most often ones based on OpenStreetMap.

Leaflet handles the essentials: panning and zooming, markers, popups, lines, polygons and GeoJSON layers, on desktop and touch screens. It fetches square image tiles from whichever tile server you name, so it has no map data or account of its own. Hundreds of plugins add marker clustering, heatmaps, drawing tools, search boxes and routing, and react-leaflet wraps it for React apps.

It is deliberately simple and weighs only a few dozen kilobytes. The trade-off is that it mainly shows raster tiles without WebGL, so smooth rotation, 3D and restyling a vector map in the browser are out of reach without plugins; MapLibre GL JS is the open-source option for those. The tiles are the part that can cost money: the public OpenStreetMap servers are for light use only, so production sites usually use a tile provider such as MapTiler, Stadia Maps or Thunderforest, or serve their own.

Pros

  • Free and open source, with no account or key for the library
  • Small, quick to load and simple to learn
  • Works with any tile provider, so switching is a one-line change
  • Large plugin ecosystem for clustering, drawing and heatmaps

Cons

  • No built-in search, geocoding or directions
  • Raster tiles cannot be restyled in the browser like vector maps
  • No 3D, tilt or smooth rotation out of the box

Pick it when

  • A store locator, delivery area or contact-page map
  • Budgets that rule out per-load map fees
  • Showing GeoJSON data, such as zones or routes, on a simple map

Skip it when

  • Native mobile apps, which need a native map SDK
  • Vector styling, 3D or very large datasets (look at MapLibre or Mapbox)

What it costs · Open source

Free (BSD 2-Clause). Tiles come from a separate provider, which may charge for heavier use.

Approximate, checked September 2026.

Also called: Leaflet.js, react-leaflet, slippy map

Open Leaflet as a pageOfficial site (opens in a new tab)

OpenStreetMap

ServiceFree
A free, editable map of the whole world built by volunteers, a little like Wikipedia for maps. Anyone may use its data as long as they credit it.

OpenStreetMap is a database of roads, buildings, paths, shops and boundaries that contributors add and correct, often from satellite imagery and GPS traces. The data is published under the Open Database License (ODbL): use it for anything, commercial work included, as long as maps credit '© OpenStreetMap contributors' and any modified version of the database you make public stays under the same licence. Mapbox, MapTiler and many other services build their maps from it.

The OpenStreetMap Foundation runs public tile servers and the Nominatim geocoder, but they are funded by donations and meant for light use: the usage policies require attribution, forbid bulk downloading and allow heavy users to be blocked without notice, and Nominatim allows at most one request a second. Apps with real traffic should use a tile provider built on OSM data or host their own tiles, for example with OpenMapTiles or PMTiles.

What it costs · Free

The data is free under the ODbL. The public tile servers are for light use only; real traffic needs a paid tile provider or your own server.

Approximate, checked September 2026.

Also called: OSM, ODbL, Nominatim, OpenStreetMap Foundation

Open OpenStreetMap as a pageOfficial site (opens in a new tab)

Location data

Map tiles

Concept
The small square pieces a web map is made of. The map downloads only the tiles for the area and zoom level on screen, which is why maps load quickly.

The world is cut into a grid at every zoom level: at zoom 0 a single tile covers the whole planet, and each level splits every tile into four, so street level at zoom 18 has tens of billions of them. A tile is addressed by zoom, x and y (the {z}/{x}/{y} in a tile URL), and panning a map just requests the next few tiles, which browsers and CDNs cache well.

Raster tiles are ready-made images, usually 256 pixels square, simple to show but fixed in style. Vector tiles carry the raw shapes and labels, and the device draws them with WebGL, so the map can be restyled, rotated and kept sharp at any zoom, usually with smaller downloads. Tiles come from providers (Google, Mapbox, MapTiler, Stadia Maps) or can be generated from OpenStreetMap data and served from your own storage, for example as a single PMTiles file.

Also called: raster tiles, vector tiles, tile server, slippy map, PMTiles, XYZ tiles

Open Map tiles as a page

Geocoding

Concept
Turning an address into map coordinates, or coordinates back into an address (reverse geocoding), so an app can place a pin or say where someone is.

Forward geocoding takes a typed address and returns a latitude and longitude, often with a tidied-up version of the address and a measure of confidence. Reverse geocoding goes the other way: a phone's GPS position becomes a street address. Address autocomplete is a close relative that suggests matching addresses as someone types, which cuts typos in delivery details.

Google, Mapbox, HERE and others offer geocoding APIs billed per request after a free monthly allowance, and each provider's terms say whether, and for how long, results may be stored; permanent storage is sometimes a separate, pricier product. Nominatim geocodes with OpenStreetMap data, free at low volume or on your own server. Address quality varies a lot by country, so it is worth testing with real addresses from your own market.

Also called: reverse geocoding, address lookup, address autocomplete, Places autocomplete, Nominatim

Open Geocoding as a page

Geofencing

Concept
Drawing a virtual boundary on a map, such as a delivery zone or the streets around a shop, and reacting when a location falls inside it or crosses it.

There are two common forms. On a server, a geofence is a polygon or a circle, and a point-in-polygon check answers questions such as 'is this address inside the delivery area?' at checkout; PostGIS, Turf.js and most map SDKs can do the maths. On a phone, the operating system watches for entry and exit (Android's Geofencing API, iOS region monitoring) and wakes the app when the device crosses a boundary, even in the background.

Device geofences have limits: Android allows 100 active geofences per app and iOS 20 monitored regions, alerts can arrive a few minutes late to save battery, and background location needs an extra permission that app stores review closely. Delivery zones drawn by postcode or by drive time (an isochrone) often match real delivery times better than a plain radius.

Also called: geofence, delivery zone, service area, point in polygon, region monitoring

Open Geofencing as a page

Routing and route optimisation

Concept
Working out how to get from A to B (routing), and the most efficient order and split of many stops across several drivers (route optimisation).

A routing engine treats roads as a graph with speeds, turn rules and, from some providers, live traffic, and finds the quickest path for driving, cycling or walking. A distance matrix returns travel times between many starting points and destinations at once, which is how an app finds the nearest driver or store. An isochrone shows everywhere reachable within a set time, such as 20 minutes.

Route optimisation is a harder problem: given 40 deliveries, 3 vans, time windows and vehicle capacities, find the order and split that minimises driving. It is known as the vehicle routing problem, a relative of the travelling salesman problem. Google's Route Optimization API and Mapbox's Optimization API solve it as a service billed by usage, while OSRM, GraphHopper, Valhalla and VROOM are open-source engines that run on OpenStreetMap data on your own servers.

Also called: directions API, distance matrix, route planning, vehicle routing problem, VRP, travelling salesman

Open Routing and route optimisation as a page

On the device

Device location

API
How an app finds out where a phone or computer is, using GPS, Wi-Fi and mobile networks, always with the user's permission.

In a browser, the Geolocation API (navigator.geolocation) asks the user for permission, works only on HTTPS pages and returns a latitude, a longitude and an accuracy radius in metres; watchPosition keeps updating as the device moves. On Android the Fused Location Provider blends GPS, Wi-Fi, mobile networks and motion sensors to balance accuracy against battery life, and on iOS Core Location does the same. Both let users share only an approximate position.

Accuracy ranges from a few metres outdoors with GPS to a whole neighbourhood from Wi-Fi or mobile networks alone, and is often worse indoors. Tracking in the background needs a separate permission and a clear reason, and app stores review it closely. Location from an IP address needs no permission but usually only gets the city or region right, which suits choosing a currency or language, not a delivery address.

Also called: Geolocation API, GPS, navigator.geolocation, Fused Location Provider, Core Location, IP geolocation

Open Device location as a page

Side by side

Differences

How the options in this area compare on the questions that usually decide the choice.

Google Maps vs Mapbox vs Leaflet

Open as a page: Google Maps vs Mapbox vs Leaflet

Two of these are hosted map services that bill by use; Leaflet is a free library that draws whichever map tiles you give it. The choice comes down to data quality, how much control you want over the look, and the bill as traffic grows.

CompareGoogle MapsMapboxLeaflet
What it isHosted maps, places and routesHosted maps, styling tools and location APIsOpen-source library for web maps
Map dataGoogle's own, with rich places dataLargely OpenStreetMap, plus its ownWhatever tiles you choose, often OSM-based
StylingSome control through cloud stylingFull control in Mapbox StudioSet by the tile provider
RenderingVector or raster, with 3D optionsVector with WebGL, 3D terrainMostly raster tiles, no WebGL
Search and directionsPlaces, geocoding and Routes APIsSearch, geocoding and directions APIsPlugins that call outside services
Mobile appsNative Android and iOS SDKsNative Android and iOS SDKsWeb only
Free each month10,000 web map loads; mobile SDK maps free50,000 web map loads; 25,000 mobile usersThe library is free; tiles depend on the provider
Lock-inHigh: terms bar mixing with other mapsMedium: proprietary SDK licenceLow: switch tiles by changing a URL
Best forAddress search and local placesBranded or data-heavy mapsSimple maps on a small budget

How to choose

  • Pick Google Maps when accurate places, address autocomplete and familiar directions matter more than the size of the bill.
  • Pick Mapbox for maps that must match a brand or show lots of data, with a larger free allowance on the web.
  • Pick Leaflet for a simple, low-cost web map, such as a store locator or delivery area, paired with an OpenStreetMap-based tile provider.

Crafted in the dark. Shipped to the world.

Tell us what you are building. You get a private project space with a proposal and a line-by-line quote within a day.