Geo Calculator API

Geo Calculator API

Widget API to calculate Geo Coordinates, Geo Fences and Sky, Sun, Moon, Eclipse information.

API description

Geo Calculator offers four endpoints to help you work with coordinates:

  • Convert - Convert a list of geo coordinates to a standard format - (latlon | utm | mgrs | ecef | epsg3857 | georef | cartesian)
  • Distance - Calculate the distance between two geo coordinates
  • Fence - Check if a list of coordinates are inside of a fence of coordinates.
  • Sky - Calculate sun, moon, eclipse and sky information for the date and location

Some Common Use Cases:

  1. 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.

  2. 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.

  3. 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.

  4. 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.

  5. 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.

  6. 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.

  7. 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

 

API Documentation

Endpoints


Convert the list of geo coordinates to a standard format - (latlon | utm | mgrs | ecef | epsg3857 | georef | cartesian)



                                                                            
POST https://zylalabs.com/api/2142/geo+calculator+api/1942/convert
                                                                            
                                                                        

Convert - Endpoint Features
Object Description
Request Body [Required] Json
Test Endpoint

API EXAMPLE RESPONSE

       
                                                                                                        
                                                                                                                                                                                                                            {"coordinates":"N 39ΒΊ 48' 6.368\" W 86ΒΊ 9' 27.968\""}
                                                                                                                                                                                                                    
                                                                                                    

Convert - CODE SNIPPETS


curl --location --request POST 'https://zylalabs.com/api/2142/geo+calculator+api/1942/convert' --header 'Authorization: Bearer YOUR_API_KEY' 

    

Calculate sun, moon, eclipse and sky information for the date and location.



                                                                            
POST https://zylalabs.com/api/2142/geo+calculator+api/1943/sky
                                                                            
                                                                        

Sky - Endpoint Features
Object Description
Request Body [Required] Json
Test Endpoint

API EXAMPLE RESPONSE

       
                                                                                                        
                                                                                                                                                                                                                            {"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"}}
                                                                                                                                                                                                                    
                                                                                                    

Sky - CODE SNIPPETS


curl --location --request POST 'https://zylalabs.com/api/2142/geo+calculator+api/1943/sky' --header 'Authorization: Bearer YOUR_API_KEY' 

    

Check if a list of coordinates are inside of a fence of coordinates.



                                                                            
POST https://zylalabs.com/api/2142/geo+calculator+api/1944/fence
                                                                            
                                                                        

Fence - Endpoint Features
Object Description
Request Body [Required] Json
Test Endpoint

API EXAMPLE RESPONSE

       
                                                                                                        
                                                                                                                                                                                                                            {"insides":[true],"distances":[13438.80200086406]}
                                                                                                                                                                                                                    
                                                                                                    

Fence - CODE SNIPPETS


curl --location --request POST 'https://zylalabs.com/api/2142/geo+calculator+api/1944/fence' --header 'Authorization: Bearer YOUR_API_KEY' 

    

Calculate the distance between two geo coordinates.



                                                                            
POST https://zylalabs.com/api/2142/geo+calculator+api/1945/distance
                                                                            
                                                                        

Distance - Endpoint Features
Object Description
Request Body [Required] Json
Test Endpoint

API EXAMPLE RESPONSE

       
                                                                                                        
                                                                                                                                                                                                                            {"meters":140596.58853321144,"bearing":141.94878033913545}
                                                                                                                                                                                                                    
                                                                                                    

Distance - CODE SNIPPETS


curl --location --request POST 'https://zylalabs.com/api/2142/geo+calculator+api/1945/distance' --header 'Authorization: Bearer YOUR_API_KEY' 

    

API Access Key & Authentication

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 REST API, simply include your bearer token in the Authorization header.

Headers

Header Description
Authorization [Required] Should be Bearer access_key. See "Your API Access Key" above when you are subscribed.


Simple Transparent Pricing

No long term commitments. One click upgrade/downgrade or cancellation. No questions asked.

πŸš€ Enterprise
Starts at $10,000/Year

  • Custom Volume
  • Dedicated account manager
  • Service-level agreement (SLA)

Customer favorite features

  • βœ”οΈŽ Only Pay for Successful Requests
  • βœ”οΈŽ Free 7-Day Trial
  • βœ”οΈŽ Multi-Language Support
  • βœ”οΈŽ One API Key, All APIs.
  • βœ”οΈŽ Intuitive Dashboard
  • βœ”οΈŽ Comprehensive Error Handling
  • βœ”οΈŽ Developer-Friendly Docs
  • βœ”οΈŽ Postman Integration
  • βœ”οΈŽ Secure HTTPS Connections
  • βœ”οΈŽ Reliable Uptime

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.

Zyla API Hub is, in other words, an API MarketPlace. An all-in-one solution for your developing needs. You will be accessing our extended list of APIs with only your user. Also, you won't need to worry about storing API keys, only one API key for all our products is needed.

Prices are listed in USD. We accept all major debit and credit cards. Our payment system uses the latest security technology and is powered by Stripe, one of the world’s most reliable payment companies. If you have any trouble with paying by card, just contact us at [email protected]

Sometimes depending on the bank's fraud protection settings, a bank will decline the validation charge we make when we attempt to be sure a card is valid. We recommend first contacting your bank to see if they are blocking our charges. If more help is needed, please contact [email protected] and our team will investigate further

Prices are based on a recurring monthly subscription depending on the plan selected β€” plus overage fees applied when a developer exceeds a plan’s quota limits. In this example, you'll see the base plan amount as well as a quota limit of API requests. Be sure to notice the overage fee because you will be charged for each additional request.

Zyla API Hub works on a recurring monthly subscription system. Your billing cycle will start the day you purchase one of the paid plans, and it will renew the same day of the next month. So be aware to cancel your subscription beforehand if you want to avoid future charges.

Just go to the pricing page of that API and select the plan that you want to upgrade to. You will only be charged the full amount of that plan, but you will be enjoying the features that the plan offers right away.

Yes, absolutely. If you want to cancel your plan, simply go to your account and cancel on the Billing page. Upgrades, downgrades, and cancellations are immediate.

You can contact us through our chat channel to receive immediate assistance. We are always online from 9 am to 6 pm (GMT+1). If you reach us after that time, we will be in contact when we are back. Also you can contact us via email to [email protected]

 Service Level
100%
 Response Time
153ms

Category:


Tags:


Related APIs