Carpathian Maps: A Map and Directions API
Carpathian Maps gives your site a world map and your backend walk, bike, drive and transit directions, all from Carpathian's own map server.
Carpathian Maps gives your site a world map and your backend walk, bike, drive and transit directions, all from Carpathian's own map server.
What bandwidth overage fees are in cloud hosting, the three ways providers handle traffic past the allowance, how to estimate yours, and how to cap the bill.
What US-based cloud hosting means in practice, the four places data leaves the country without you noticing, and the questions that get it in writing.
Seven steps to host a website on a VPS: pick a server, connect over SSH, secure it, install a web server, upload your site, point your domain, and add HTTPS.
Carpathian Maps is a map and directions API that keeps your users' trips to itself. You put a world map on your website or app, and your backend asks for walk, bike, drive or transit directions, travel times and the area reachable from a point. All of it comes from Carpathian's own map server, built on open map data, so no third-party map provider receives a request carrying where your users are or where they're headed.
You enable it from Services, create an app for each website or service that uses it, and get a key for that app. Requests are free up to a monthly allowance and billed per thousand after that. The rest of this piece covers why a directions request is sensitive, how the map and the API connect, how keys and websites are protected, what it costs, and what it doesn't cover.
A directions request carries two locations: where someone is and where they're going. Ask a hosted directions provider for a route and that provider receives both, along with the time, the mode of travel and whatever identifies your app. Repeat that across every trip your users plan and the provider holds a detailed record of their movements, kept under its own policies rather than yours.
Map tiles leak less but still leak. Every time a map loads or pans, the browser fetches the pieces of the map it's looking at, so the tile server learns which neighborhoods your users browse.
Carpathian Maps answers both from servers Carpathian runs. The coordinates in a route request stay on the map server and are never written to a log; the server records the time, the status and which app asked, nothing more. Carpathian's own platform sees only how many requests each app made each day, for the usage page and the bill.
The map and the directions work separately, so you can use either or both.
The map covers the whole planet. Walk, bike and drive directions work wherever the map server's road coverage reaches, and the coverage table on the documentation's overview page lists it. The road data is the full OpenStreetMap planet, about 95 GB as OpenStreetMap publishes it, refreshed every month.
How to upload a PDF, a photo, or a long paste to a free AI chat without an account, what happens to the file, and what the free tier won't do with it.
You point a MapLibre map at the map server's files and give it the basemap style. The Connect guide has the whole example; the important part is the address your map reads from:
const base = "https://maps.carpathian.ai/map";
Before the map will load in a browser, list your website on your app in Carpathian, for example https://app.example.com. A browser on any website that isn't listed is refused, so another site can't embed your map and run up your usage. Add every address the map appears on, including a http://localhost address if you develop locally.
Keep the OpenStreetMap credit visible. The data's license requires it, and the example in the guide already shows it.
Your backend sends a POST with the app's key as a bearer token:
curl https://maps.carpathian.ai/v1/route \
-H "Authorization: Bearer $MAPS_API_KEY" \
-H "Content-Type: application/json" \
-d '{"origin":{"lat":41.5868,"lng":-93.625},"destination":{"lat":41.6005,"lng":-93.6091},"mode":"walk"}'
The answer has the route's time in seconds, its distance in meters, the path as latitude and longitude pairs, and one step per instruction. The API reference lists every field and every error. Your browser or mobile app asks your backend, and your backend asks Carpathian Maps, so the key never leaves your servers.
Each app gets its own key, which starts with cmk_. It's shown once, when you create the app, and Carpathian keeps only a hash of it. The map server never holds the key either: it receives the list of hashes and checks each request against it.
429 and a time to retry, so a bug that loops on your side can't run up a bill.Each organization gets a free monthly allowance of route and travel-time requests. Past it, requests are billed per thousand on your monthly invoice, at the rate shown on the Carpathian Maps service page. Map file requests aren't billed, and requests the server can't answer because something on its side failed don't count. The Maps page shows this month's requests against the allowance as they happen, and a spend cap on your organization pauses your apps' keys when it's reached instead of letting usage run past it.
Transit covers the bus systems listed in the coverage table, which today is DART in the Des Moines metro. A transit request anywhere else answers that no route was found. Transit grows one region at a time, because each region's timetables are built into their own graph.
There's no address search. Carpathian Maps turns coordinates into routes and areas, so if your users type addresses, you'll need a geocoder to turn those into latitude and longitude first.
The map's labels are in English, and the styles are the Protomaps basemap's own: light, dark, white, grayscale and black. If your design needs something further from those, you can restyle the map in your own MapLibre code, but that style is yours to maintain.
Carpathian Maps is for teams that want maps and directions in their product without handing their users' movements to a map provider, and who are comfortable calling an API from their own backend. It answers coordinates, not addresses, and its transit coverage is regional. If your app needs worldwide transit or address search today, you'll still want a provider that offers those.
If it fits, create an account or sign in, enable Carpathian Maps from Services, and follow the Connect guide. The usage policy covers the limits and pricing in full.