Skip to content

Find a place
from coordinates.

Give your application a nearby place label, or find coordinates from a place-name prefix. HTTP GET, JSON responses, browser CORS, and no API key.

Reverse lookup and name search

01

Coordinates → place

Send latitude and longitude to receive a nearby place label, state/district display, and country.

02

Name → coordinates

Search by the beginning of a place name. Receive up to 10 matches with coordinates and regional context.

03

Ready for your application

Use JSON in browser or backend applications. Pair selected coordinates with QASRA Salah API for prayer information.

Request examples

Reverse lookup

Resolve these coordinates near Dargah Sharif, Ajmer.

HTTP GET
https://geo.qasra.org/?lat=26.45298&lng=74.62349
EXAMPLE RESPONSE
{
  "city": "Dargah Sharif",
  "state": "Ajmer, Rajasthan",
  "country": "India",
  "attribution": "Qasra Geocoding API - Free Public Service by Quran & Sunnah Research Academy, Ajmer"
}

Place-name search

Use the returned state and country to distinguish places with the same name.

HTTP GET
https://geo.qasra.org/search?q=Ajmer
EXAMPLE MATCH, ONE ITEM IN THE RESULT ARRAY
{
  "name": "Ajmer",
  "state": "Rajasthan",
  "country": "India",
  "lat": 26.4521,
  "lng": 74.63867
}

Examples from the public guide; catalogue updates can change place labels. No search matches return an empty array.

Read the state and country

Reverse lookup returns a place label, rather than a full street address or a verified administrative boundary. Name search matches prefixes, with up to 10 results.

Show the state and country with each match, then let the user choose. The API does not supply a timezone; choose the correct one when pairing coordinates with Salah API.

Credit Quran and Sunnah Research Academy, Ajmer when displaying location information.