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
Convert the list of geo coordinates to a standard format - (latlon | utm | mgrs | ecef | epsg3857 | georef | cartesian)
Convert - Endpoint Features
| Object | Description |
|---|---|
Request Body |
[Required] Json |
{"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"
}'
Calculate sun, moon, eclipse and sky information for the date and location.
Sky - Endpoint Features
| Object | Description |
|---|---|
Request Body |
[Required] Json |
{"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"
}'
Check if a list of coordinates are inside of a fence of coordinates.
Fence - Endpoint Features
| Object | Description |
|---|---|
Request Body |
[Required] Json |
{"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"
]
}'
Calculate the distance between two geo coordinates.
Distance - Endpoint Features
| Object | Description |
|---|---|
Request Body |
[Required] Json |
{"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
}'
| 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.
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, you first need to sign in to your account and subscribe to the API you want to use. Once subscribed, go to your Profile, open the Subscription section, and select the specific API. Your API key will be available there and can be used 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.
If you don’t cancel before the 7th day, your free trial will end automatically and your subscription will switch to a paid plan under the same plan you originally subscribed to, meaning you will be charged and gain access to the API calls included in that plan.
The free trial ends when you reach 50 API requests or after 7 days, whichever comes first.
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, we offer a 7-day free trial that allows you to make up to 50 API calls at no cost, so you can test our APIs without any commitment.
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.
Please have a look at our Refund Policy: https://zylalabs.com/terms#refund
Service Level:
100%
Response Time:
517ms
Service Level:
100%
Response Time:
225ms
Service Level:
100%
Response Time:
1,466ms
Service Level:
100%
Response Time:
684ms
Service Level:
100%
Response Time:
345ms
Service Level:
100%
Response Time:
67ms
Service Level:
100%
Response Time:
570ms
Service Level:
100%
Response Time:
116ms
Service Level:
100%
Response Time:
87ms
Service Level:
100%
Response Time:
2,429ms
Service Level:
100%
Response Time:
419ms
Service Level:
100%
Response Time:
659ms
Service Level:
100%
Response Time:
120ms
Service Level:
100%
Response Time:
608ms
Service Level:
100%
Response Time:
352ms
Service Level:
100%
Response Time:
1,290ms
Service Level:
100%
Response Time:
382ms
Service Level:
100%
Response Time:
114ms
Service Level:
100%
Response Time:
274ms
Service Level:
100%
Response Time:
1,755ms