Geo Location API

Every birth place, with the right time.

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.

  • Keystrokes are free
  • Browser-safe keys
  • 100 free credits
Places worldwide, villages included
5.2M+Places worldwide, villages included
Search by Indian PIN code
PINSearch by Indian PIN code
Autosuggest response
<50 msAutosuggest response
Charge per search session
1Charge per search session

What you get

The place search astrology needs.

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

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.

KolkataEnglishकोलकाताहिंदीকলকাতাবাংলাகொல்கத்தாதமிழ்కోల్‌కాతాతెలుగుکولکاتہاردو

Names your users write

Search and show names in Hindi, Tamil, Bengali, Marathi, Urdu, Arabic and more, next to the English name.

Delhi · 1943+06:30war time
Delhi · 1990+05:30IST
London · July+01:00summer time

The offset on the birth date

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

Fast as the user types

Autosuggest answers in under 50 ms, so suggestions keep up with every keystroke.

v1 chargevafreevarfreevarafreevaranfree

one session · one charge

Session billing

Keystrokes are free: send one session token per search box and the whole search is charged once.

<script src="…/geo-widget.js">
Birth place

Drop-in widget

One script tag adds the search to any form. Website keys work only for this API and only from your websites.

Accuracy

A wrong offset is a wrong Ascendant.

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

03:0004:0005:0006:001 hour off

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
GET /v1/geo/timezone · Delhi, 10 May 1943, 10:30
{
  "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

One script tag, or plain REST.

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>

Five endpoints

  • GET/v1/geo/searchautosuggest by name or PIN
  • GET/v1/geo/reversenearest place to a point
  • GET/v1/geo/timezoneoffset for a birth date
  • POST/v1/geo/bulkup to 100 names at once
  • POST/v1/geo_detailsastrologyapi-compatible

FAQ

Frequently asked questions

Still have questions?

Write to us or call, and we'll help you get started.

Contact us
Where does the place data come from?

Our own place index: every populated place worldwide with its district, state, coordinates and timezone, plus Indian PIN codes.

How is a search session billed?

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.

Can I call it from my website without exposing my key?

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.

I already use geo_details and timezone_with_dst. Do I need to change anything?

No. Both astrologyapi-compatible calls keep their request and response format and now use the full place data.

Which timezone should I send to the chart APIs?

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.

Put the right place on every chart.

Create an account, add your website to your key and paste one script tag. 100 free credits included.

  • Keystrokes are free
  • Browser-safe keys
  • 100 free credits