Repository files navigation As-the-Crow-Flies Location API
As the Crow Flies is a Google Maps API-based backend that provides endpoints to:
Return an address, latitude, and longitude for a place or address input.
Return an address, latitude, and longitude for a latitude-longitude input.
Last, but not least, return a distance (as the crow flies) between two locations.
Django
Python
Google Maps APIs
SQL
The project backend REST API has been deployed on Heroku. Here are the URL and enpoints needed to use the API:
https://locationdb-api.herokuapp.com/
location/<address>
Retrieves a location by place name or address.
Returns ID, address, latitude, and longitude.
reverselocation/<latitude>/<longitude>
Retrieves a location by latitude-longitude.
Returns ID, address, latitude, and longitude.
distance/<starting-location-id>/<destination-id>
Retrieves the distance between two locations (using the returned IDs from the location calls).
Returns the distance in miles and kilometers along with each location's data (ID, address, latitude, and longitude).
locations/
Returns data for all previously queried locations.
locations/<location-id>
Returns data for a specific, previously queried location based on ID.
distances/
Returns data for all previously queried distances.
distances/<distance-id>
Returns data for a specific, previously queried distances based on ID.
About
REST API for getting location details and as-the-crow-flies distance.
Topics
Resources
Stars
Watchers
Forks
You can’t perform that action at this time.