Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/delusionaloptimist/distance-api
A minimalistic web app that gets you the route and distance between two places
https://github.com/delusionaloptimist/distance-api
go google-maps google-maps-api
Last synced: about 1 month ago
JSON representation
A minimalistic web app that gets you the route and distance between two places
- Host: GitHub
- URL: https://github.com/delusionaloptimist/distance-api
- Owner: DelusionalOptimist
- Created: 2022-09-28T18:16:23.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-10-03T08:55:15.000Z (over 2 years ago)
- Last Synced: 2024-10-15T10:42:27.649Z (3 months ago)
- Topics: go, google-maps, google-maps-api
- Language: Go
- Homepage: https://distance-api.delusionaloptim.repl.co/
- Size: 1.98 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Distance API
A minimalistic app using Google Maps' APIs to get the distance and plot a route between two addresses.
![demo image](./image.png)## Try it out
### Live
Checkout the live version at: https://distance-api.delusionaloptim.repl.co### Docker
```
docker run -p 8080:8080 delusionaloptimist/distance-api:latest
```### Build and run locally
```
make run
```## Google Maps APIs used
* [Distance Matrix API](https://developers.google.com/maps/documentation/distance-matrix/overview) - for calculating distance
* [Places API](https://developers.google.com/maps/documentation/places/web-service/overview) - for autocomplete
* [JavaScript API](https://developers.google.com/maps/documentation/javascript/overview) - for rendering and showing route on map## Stack
* Go
* JS
* HTML
* CSS