villageBudhiapur
districtBara Banki
stateUttar Pradesh
Villages, districts & PIN codes
5.2M+ places worldwide, down to villages, with district and state. Type a 6-digit PIN code and get the place.
Geo Location API
Place search built for astrology: villages, districts and PIN codes across India and the world, names in your users' script, and the UTC offset that applied on the birth date. One API key, or one script tag on your website.
What you get
General map search finds addresses. A birth chart needs the village a grandmother was born in, and the clock time that was in force there.
villageBudhiapur
districtBara Banki
stateUttar Pradesh
5.2M+ places worldwide, down to villages, with district and state. Type a 6-digit PIN code and get the place.
Search and show names in Hindi, Tamil, Bengali, Marathi, Urdu, Arabic and more, next to the English name.
IANA timezone plus the UTC offset in force on that date: daylight saving, India's +06:30 war time of 1942–45, and local mean time for old dates.
<50 msper suggestion
Autosuggest answers in under 50 ms, so suggestions keep up with every keystroke.
one session · one charge
Keystrokes are free: send one session token per search box and the whole search is charged once.
<script src="…/geo-widget.js">One script tag adds the search to any form. Website keys work only for this API and only from your websites.
Accuracy
A chart is calculated for one moment in UTC: the local birth time minus the UTC offset. Get the offset wrong and every house moves with it.
Offsets change over time. India kept +06:30 war time from 1942 to 1945. Many countries move their clocks for daylight saving every year, and some have changed zone altogether. Today's offset of a place is not always the offset on the birth date.
Old dates kept local time. Before a place adopted standard time, clocks followed the Sun. We return the local mean time offset from the longitude as well, so your astrologers can choose.
Why it matters. The Ascendant passes through all twelve signs in a day, about one sign every two hours on average. An hour's error in the offset can put the Ascendant in the wrong sign and shifts every house cusp; the Moon moves about half a degree in that hour, enough to change its nakshatra pada near a boundary.
Delhi · 10 May 1943 · 10:30 local time
the same birth, two offsets
Today's offset
+05:30
10:30 − 5:30 = 05:00 UTC
Offset on the birth date
+06:30 war time
10:30 − 6:30 = 04:00 UTC
In one hour the Ascendant moves about half a sign. /v1/geo/timezone returns the offset that applied on the date.
GET /v1/geo/timezone · the response{
"timezone": "Asia/Kolkata",
"datetime_local": "1943-05-10T10:30:00",
"datetime_utc": "1943-05-10T04:00:00Z",
"utc_offset": 6.5,
"utc_offset_text": "+06:30",
"utc_offset_seconds": 23400,
"is_dst": true,
"abbreviation": "+0630",
"local_mean_time_offset": 5.1473,
"local_mean_time_offset_text": "+05:08:50",
"notes": [
"Clocks were 01:00 ahead of standard time on this date (daylight saving or war time)"
]
}With today's +05:30 this birth would be placed at 05:00 UTC; the clocks actually showed +06:30, so the true moment is 04:00 UTC.
Integrate
The widget turns any input into a birth-place search with keyboard navigation, screen-reader support and one billed session per search. Building your own UI or app? Call the API from your server.
<!-- Your website key: works only for the Geo API, only from the websites you listed. --> <input id="birth-place" placeholder="Birth place"> <input type="hidden" id="lat" name="latitude"> <input type="hidden" id="lon" name="longitude"> <input type="hidden" id="tz" name="timezone"> <script src="https://astrologyapis.ratnoveda.com/geo-widget.js" data-key="YOUR_WEBSITE_KEY" data-input="#birth-place" data-lang="hi" data-country="IN" data-lat="#lat" data-lon="#lon" data-tz="#tz"></script> <script> document.querySelector("#birth-place").addEventListener("geo:select", (e) => { console.log(e.detail); // the chosen Place }); </script>
/v1/geo/searchautosuggest by name or PIN/v1/geo/reversenearest place to a point/v1/geo/timezoneoffset for a birth date/v1/geo/bulkup to 100 names at once/v1/geo_detailsastrologyapi-compatibleFAQ
Our own place index: every populated place worldwide with its district, state, coordinates and timezone, plus Indian PIN codes.
Send the same random token (a session) with every keystroke search for one place. Only the first search of the session is charged; a session is one place, for up to 5 minutes or 20 searches. Without a token every search is charged. The widget handles this for you.
Yes. In the dashboard, edit your API key and add your websites: you get a website key that works only for the Geo Location API and only from those sites, so it is safe in page code. Your main key stays on your server.
No. Both astrologyapi-compatible calls keep their request and response format and now use the full place data.
The timezone name from the search result, e.g. "timezone": "Asia/Kolkata". The chart APIs then apply the offset the clocks actually showed on the birth date and time. If you send a number instead, use the utc_offset from /v1/geo/timezone for the birth date, not today's offset of the place.
Create an account, add your website to your key and paste one script tag. 100 free credits included.