Bajanda Maps Sign up

The address API for Cuba.

Send the address the way people say it: between streets (“entre”), by the corner (“esq”) or with the house number. We send back the block, its coordinates and how much to trust the answer.

Requestcurl -G https://maps.bajanda.co/api/v2/geocode \
  -H "X-API-Key: bm_live_tu_clave" \
  --data-urlencode 'address=San Rafael entre Gervasio y Belascoain'
Response{
  "results": [
    {
      "place_id": "addr_eyJ0IjoiYmxvY2siLCJuIjoiU2FuIFJhZmFlbCwgZW50cmUgR2VydmFzaW8geSBQYWRyZSBWYXJlbGEgKEJlbGFzY29hw61uKSIsInMiOiJEcmFnb25lcywgQ2VudHJvIEhhYmFuYSwgTGEgSGFiYW5hIiwiYSI6WyIiLCIiLCJTYW4gUmFmYWVsIiwiR2VydmFzaW8iLCJCZWxhc2NvYWluIiwiRHJhZ29uZXMiLCJDZW50cm8gSGFiYW5hIiwiTGEgSGFiYW5hIl0sInAiOlsyMy4xMzYxMjY1NSwtODIuMzY5NTc2OTUwMDAwMDFdfQ.NGKKoP-lxVCk9H43fxUSXk",
      "type": "block",
      "name": "San Rafael, entre Gervasio y Padre Varela (Belascoaín)",
      "formatted_address": "San Rafael, entre Gervasio y Padre Varela (Belascoaín), Dragones, Centro Habana, La Habana",
      "place_formatted": "Dragones, Centro Habana, La Habana",
      "location": {
        "lat": 23.13612655,
        "lng": -82.36957695000001
      },
      "address": {
        "street": "San Rafael",
        "cross_streets": [
          "Gervasio",
          "Belascoain"
        ],
        "neighborhood": "Dragones",
        "municipality": "Centro Habana",
        "province": "La Habana",
        "country": "Cuba",
        "country_code": "CU"
      },
      "confidence": 0.95
    }
  ]
}

Change the address and send it: the answer comes from the live API.

What you can ask for.

REST and JSON, from any language. You can try every endpoint in the docs.

How to read a response

It reads what people write.

Global maps can’t read “entre Gervasio y Belascoaín”. This API is built for it, on our own map of the whole country.

Clear limits.

Every request to the API carries your key, which comes free with your account. Per-minute limits belong to the key, wherever it calls from.

LimitApplies to
2,000 requests per monthEach free account, across all its keys. The month starts on the 1st (UTC).
1,200 per minuteAutocomplete (/autocomplete), per key.
600 per minutePlaces, per key.
240 per minuteGeocoding and reverse geocoding together, per key.
240 per minuteDirections, per key.
60 per minuteMatrix, per key, up to 100 origins and 100 destinations each.
20 per minuteRoute optimization, per key, up to 200 stops and 20 couriers each.

From the browser.

Your checkout page can call the API from the customer’s browser, with no proxy on your server, using a publishable key (bm_pub_…). It goes in the URL, as ?key=bm_pub_…: that way the browser sends no preflight request for every keystroke.

In your pageconst response = await fetch(
  'https://maps.bajanda.co/api/v2/autocomplete?key=bm_pub_tu_clave&input=' + encodeURIComponent(texto)
);
const { results } = await response.json();

From an app.

Your app (Android, iOS, React Native, Flutter or hybrid) can call the API directly with no key inside it: your server, which already knows your users, gives it a temporary token (bm_tok_…) for each session with POST /api/v2/tokens, and the app sends it on every call.

On your serverconst made = await fetch('https://maps.bajanda.co/api/v2/tokens', {
  method: 'POST',
  headers: { 'X-API-Key': 'bm_live_tu_clave', 'Content-Type': 'application/json' },
  body: JSON.stringify({ user: idDelUsuario, ttl: 3600 }),
});
const { token, expires_in } = await made.json();
In your appconst response = await fetch(
  'https://maps.bajanda.co/api/v2/geocode?address=' + encodeURIComponent(direccion),
  { headers: { Authorization: 'Bearer ' + token } }
);

Pricing

Free up to 2,000 requests per month. After that you pay for what you use: every 1,000 requests at their endpoint’s price, and less with volume.

Free

$0 per month

For trying the API and for small projects.

  • 2,000 requests per month, across all your keys
  • Every endpoint: geocoding, autocomplete, places, directions, matrix and route optimization
  • Up to 3 keys
  • No credit card
  • Community support
Create a free account

Developer

Pay as you go

For apps and businesses past 2,000 per month.

  • The first 2,000 each month, free
  • After that, every 1,000 at their endpoint’s price, less with volume
  • An optional monthly spending limit, in dollars
  • Unlimited keys
  • SLA 99.9% uptime
  • Priority email support
Add a card

Price per endpoint

Per 1,000 requests, in USD; the matrix counts each origin–destination pair, route optimization each stop. The first 2,000 each month are free, across all endpoints. Requests a per-minute limit turns away (429) and errors on our side (5xx) don’t count.

EndpointWhat countsPrice
per 1,000
GeocodingEach address or place you look up (/geocode) and each point you turn into an address (/reverse)$0.75
AutocompleteEach request while someone types (/autocomplete)$0.75
PlacesEach page of a search (/places/search, /places/nearby) and each place or address fetched by its id (/places/{place_id})$1.00
DirectionsEach route, with its alternatives (/directions)$2.00
MatrixEach origin–destination pair of a matrix (/matrix): a 10 × 10 matrix counts 100$2.00
Route optimizationEach stop sent to be ordered or split among couriers (/optimize)$2.00
Chosen suggestionReporting which one the person chose (/autocomplete/selections)Free

With volume

A month’s requests past 500,000 in the same row cost less, and those past 1 million less still. More than 5 million a month: let’s talk.

EndpointOver
500,000
Over
1 million
Geocoding and autocomplete$0.60$0.45
Places$0.85$0.70
Directions$1.60$1.20
Matrix$1.60$1.20
Route optimization$1.60$1.20