GET /v1/timezone-by-coordsTimezone by coordinates
Business Utils lf-business-utils
Tells you which timezone a spot on the map is in, using its latitude and longitude. Looks up the IANA timezone name for a given latitude/longitude coordinate pair.
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
lat | number | Yes | Latitude |
lng | number | Yes | Longitude |
Response Schema
success (boolean): Operation success
timezone (string): IANA timezone name
abbreviation (string): TZ abbreviation
utc_offset (string): UTC offset
cURL Example
curl 'https://lf-business-utils.laminarforge.dev/v1/timezone-by-coords?lat=40.71&lng=-74.01' -H 'Authorization: Bearer lf_YourApiKey'
Python Example
import requests
url = 'https://lf-business-utils.laminarforge.dev/v1/timezone-by-coords'
headers = {'Authorization': 'Bearer lf_YourApiKey'}
params = {'lat': 40.71, 'lng': -74.01}
response = requests.get(url, headers=headers, params=params)
print(response.json())