Location Search
location_searchResolve a birth city or place name into latitude, longitude and IANA timezone, plus the historically correct UTC offset for a given date — essential for accurate chart calculation.
Instructions
Use this when the user gives a birth city, hometown or any place name — 'born in Chicago', 'Mumbai, India', 'what timezone was Paris in 1985' — and a chart needs coordinates and a timezone. Returns display name, region (state/province), latitude, longitude and IANA timezone. With the birth date as date it also returns utcOffsetAtDate, the historically-correct UTC offset for that place on that date; post-1970 dates resolve locally at no extra cost, pre-1970 dates consult the historical overlay for the top match (+1 credit) and return its provenance. The result is flagged ambiguous when several places share the name (e.g. "portland"). A trailing "City, ST" qualifier in the query is honored. CREDIT COST: 1 credit per call.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | YYYY-MM-DD; adds the UTC offset in force there that day (historical DST). Pre-1970 corrects the top match (+1 credit). | |
| near | No | 'lat,lon' to boost nearby places. | |
| query | Yes | Search query for location, e.g. 'Los Angeles' or 'Wakefield, MI' | |
| admin1 | No | Alias for region (region wins if both supplied). | |
| region | No | State/province to boost, e.g. 'MI'. | |
| country | No | ISO country code to boost, e.g. 'US'. |