{"coordinates":"N 39º 48' 6.368\" W 86º 9' 27.968\""}
curl --location --request POST 'https://zylalabs.com/api/2142/geo+calculator+api/1942/convert' --header 'Authorization: Bearer YOUR_API_KEY'
--data-raw '{
"coordinates": "39.801769 -86.157769",
"system": "latlon",
"format": "seconds"
}'
{"sun":{"isUp":true,"set":"2023-06-17T01:15:59","rise":"2023-06-17T10:17:17","noon":"2023-06-17T17:46:49","altitude":48.81284808403095,"azimuth":99.6567012311506,"dawn":"2023-06-17T09:44:35","dusk":"2023-06-17T01:48:40","lastEclipse":{"hasEclipseData":true,"date":"2021-06-10T00:00:00","type":0,"partialEclispeBegin":"2021-06-10T10:19:00","aorTEclipseBegin":"0001-01-01T00:00:00","maximumEclipse":"2021-06-10T10:19:00","aorTEclipseEnd":"0001-01-01T00:00:00","partialEclispeEnd":"2021-06-10T10:35:25","aorTDuration":"00:00:00"},"nextEclipse":{"hasEclipseData":true,"date":"2023-10-14T00:00:00","type":0,"partialEclispeBegin":"2023-10-14T15:39:28","aorTEclipseBegin":"0001-01-01T00:00:00","maximumEclipse":"2023-10-14T17:02:09","aorTEclipseEnd":"0001-01-01T00:00:00","partialEclispeEnd":"2023-10-14T18:28:39","aorTDuration":"00:00:00"},"rightAscension":85.82780110902979,"declination":23.383002369277698},"moon":{"isUp":true,"set":"2023-06-17T00:16:53.155Z","rise":"2023-06-17T09:27:25.111Z","name":null,"sign":"Gemini","altitude":56.23932723895527,"azimuth":101.71183722382726,"distance":395088331.44547164,"illumination":{"fraction":0.004394041226453371,"angle":1.9970019788686353,"phase":0.9788845298393997,"phaseName":"Waning Crescent","phaseNameEnum":7},"bearing":0.0,"lastEclipse":{"hasEclipseData":true,"date":"2022-11-08T00:00:00","type":2,"penumbralEclipseBegin":"2022-11-08T08:02:00","partialEclispeBegin":"2022-11-08T09:09:00","totalEclipseBegin":"2022-11-08T10:17:00","midEclipse":"2022-11-08T10:59:00","totalEclipseEnd":"2022-11-08T11:42:00","partialEclispeEnd":"2022-11-08T12:49:00","penumbralEclispeEnd":"2022-11-08T13:56:00"},"nextEclipse":{"hasEclipseData":true,"date":"2024-03-25T00:00:00","type":0,"penumbralEclipseBegin":"2024-03-25T04:53:00","partialEclispeBegin":"0001-01-01T00:00:00","totalEclipseBegin":"0001-01-01T00:00:00","midEclipse":"2024-03-25T07:13:00","totalEclipseEnd":"0001-01-01T00:00:00","partialEclispeEnd":"0001-01-01T00:00:00","penumbralEclispeEnd":"2024-03-25T09:32:00"},"rightAscension":78.28730335981335,"declination":26.7228180688204},"event":{"zodiacSign":"Gemini","spring":"2023-03-20T21:25:53","summer":"2023-06-21T14:58:50","fall":"2023-09-23T06:51:26","winter":"2023-12-22T03:28:51","nextPerigee":"2023-07-04T22:29:26","lastPerigee":"2023-06-06T23:08:44","nextApogee":"2023-06-22T18:31:35","lastApogee":"2023-05-26T01:39:50"}}
curl --location --request POST 'https://zylalabs.com/api/2142/geo+calculator+api/1943/sky' --header 'Authorization: Bearer YOUR_API_KEY'
--data-raw '{
"date": "2023-06-17T14:47:30.9231894Z",
"coordinate": "39.801769 -86.157769"
}'
{"insides":[true],"distances":[13438.80200086406]}
curl --location --request POST 'https://zylalabs.com/api/2142/geo+calculator+api/1944/fence' --header 'Authorization: Bearer YOUR_API_KEY'
--data-raw '{
"fenceCoordinates": [
"39.801769 -86.157769",
"40.801769 -86.157769",
"40.801769 -87.157769",
"39.801769 -87.157769",
"39.801769 -86.157769"
],
"checkCoordinates": [
"40 -87"
]
}'
{"meters":140596.58853321144,"bearing":141.94878033913545}
curl --location --request POST 'https://zylalabs.com/api/2142/geo+calculator+api/1945/distance' --header 'Authorization: Bearer YOUR_API_KEY'
--data-raw '{
"coordinate1": "39.801769 -86.157769",
"coordinate2": "38.801769 -85.157769",
"useEllipse": false
}'
After signing up, every developer is assigned a personal API access key, a unique combination of letters and digits provided to access to our API endpoint. To authenticate with the Geo Calculator API simply include your bearer token in the Authorization header.
| Header | Description |
|---|---|
Authorization
|
Required
Should be Bearer access_key. See "Your API Access Key" above when you are subscribed.
|
No long-term commitment. Upgrade, downgrade, or cancel anytime.
(Save 2 months with annual billing 🎉)
Trusted by leading companies
Geo Calculator offers four endpoints to help you work with coordinates:
Some Common Use Cases:
Mapping and Navigation: The API enables developers to calculate accurate geo coordinates, allowing for precise mapping and navigation applications. Results can be used to find locations, plan routes, and real-time directions.
Geofencing Applications: With the API's geo fence functionality, developers can check virtual boundaries around specific locations. This is useful for applications that require monitoring and triggering actions based on entering or exiting these boundaries, such as geofencing for asset tracking, location-based notifications, or safety alerts.
Weather Applications: By utilizing the accurate geo coordinates provided by the API, developers can enhance weather forecasting applications. Real-time location data enables more precise and localized weather predictions, improving the user experience.
Astronomy and Celestial Events: The API's information about the sky, sun, moon, and eclipses is valuable for applications related to astronomy, stargazing, photography, and outdoor activities. Users can access data such as sunrise and sunset times, moon phases, moonrise and moonset times, and eclipse predictions.
Photography and Filmmaking: Photographers and filmmakers can benefit from the API's features when planning shoots. They can determine the ideal times for golden hour or blue hour, plan moonlit or starry sky shots, or even schedule specific eclipse events.
Outdoor Recreation and Adventure: Outdoor enthusiasts can use the API to check sunrise and sunset times for planning hikes, camping trips, or outdoor activities. Additionally, moonrise and moonset times can assist with moonlit hikes or moonlight photography.
Event Planning: Event organizers can incorporate the API to determine sunrise and sunset times, allowing them to schedule outdoor events at the optimal hours. They can also consider moon phases and other celestial events to enhance the overall experience
Calculate sun, moon, eclipse and sky information for the date and location.
Calculate the distance between two geo coordinates.
Check if a list of coordinates are inside of a fence of coordinates.
Convert a list of geo coordinates to a standard format - (latlon | utm | mgrs | ecef | epsg3857 | georef | cartesian)
Mapping and Navigation: The API enables developers to calculate accurate geo coordinates, allowing for precise mapping and navigation applications. Results can be used to find locations, plan routes, and real-time directions.
The Convert endpoint returns geo coordinates in a standardized format, such as latlon, utm, mgrs, ecef, epsg3857, georef, or cartesian. The response includes the converted coordinates, making it easy to integrate into various applications.
The Sky endpoint response includes fields like sun and moon status, rise and set times, altitude, azimuth, and eclipse data. This information is crucial for applications related to astronomy and outdoor planning.
Users can customize requests to the Distance endpoint by providing two sets of geo coordinates (latitude and longitude). The API calculates the distance and bearing between these points, allowing for tailored distance measurements.
Typical use cases for the Fence endpoint include geofencing for asset tracking, location-based notifications, and safety alerts. It helps determine if specific coordinates fall within defined boundaries, enabling real-time monitoring.
The Distance endpoint response is organized into key fields: "meters" for the calculated distance and "bearing" for the direction from the first coordinate to the second. This structure allows for straightforward interpretation of distance data.
The Sky endpoint provides information about sun and moon positions, eclipse events, and celestial timings such as sunrise, sunset, moonrise, and moonset. This data is valuable for planning outdoor activities and astronomical observations.
The Convert endpoint accepts a list of geo coordinates and the desired output format (e.g., latlon, utm). Users can specify multiple coordinates in a single request, allowing for batch processing of conversions.
Data accuracy is maintained through the use of reliable geospatial databases and algorithms for calculations. Regular updates and quality checks ensure that the information provided by the API remains precise and trustworthy.
To obtain your API key, first sign in to your account and navigate to the API you want to use. From the API's Pricing section, choose a plan and complete the subscription process. Once subscribed, return to the API page and you will see your API Access Key displayed at the top of the documentation page. You can use this key to authenticate your requests.
You can’t switch APIs during the free trial. If you subscribe to a different API, your trial will end and the new subscription will start as a paid plan.
The free trial lasts for 7 days and allows you to make up to 50 API requests.
No, the free trial is available only once, so we recommend using it on the API that interests you the most. Most of our APIs offer a free trial, but some may not include this option.
Yes. If the API offers a free trial, you will see a "Free 7-Day Trial" option in its Pricing section. The trial lasts for 7 days and allows up to 50 API requests, enabling you to evaluate the API before subscribing to a paid plan.
Zyla API Hub is like a big store for APIs, where you can find thousands of them all in one place. We also offer dedicated support and real-time monitoring of all APIs. Once you sign up, you can pick and choose which APIs you want to use. Just remember, each API needs its own subscription. But if you subscribe to multiple ones, you'll use the same key for all of them, making things easier for you.
You can monitor your API usage through the response headers included with every request:
x-zyla-api-calls-monthly-used: Shows the total number of API requests you have used during the current billing period.
x-zyla-api-calls-monthly-remaining: Shows the number of API requests you have remaining for the current billing period.
Yes, you can cancel your subscription at any time. Simply go to the Pricing section of the API you're subscribed to and click the "Unsubscribe" button.
Please note that upgrades, downgrades, and cancellations take effect immediately. Once your subscription is canceled, access to the service will end immediately, regardless of any remaining API calls in your quota.
Please have a look at our Refund Policy: https://zylalabs.com/terms#refund