https://github.com/eregnier/places-distance
A project to find distance between 2 text addresses locations with http usage to provide a micro service.
https://github.com/eregnier/places-distance
api geographical-information-system go microservice
Last synced: 7 months ago
JSON representation
A project to find distance between 2 text addresses locations with http usage to provide a micro service.
- Host: GitHub
- URL: https://github.com/eregnier/places-distance
- Owner: eregnier
- License: other
- Created: 2020-04-18T12:10:27.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-04-19T11:44:57.000Z (over 5 years ago)
- Last Synced: 2025-01-23T16:51:43.944Z (9 months ago)
- Topics: api, geographical-information-system, go, microservice
- Language: Go
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Places distance
Find distance between 2 addresses located in France. This tool relies on [government open api](https://geo.api.gouv.fr/adresse) to provide a distance computation between 2 textual addresses
Distance is a spherical distance computation. It gives the same result than the distance computation on gmap (right click for tests) in my own few tests.
I found the distance computation function here https://www.geodatasource.com/developers/go under LGPL v3 as of 18-04-2020, so is this project
## Usage
All commands are located in [Makefile](Makefile)
For quick test you can do
`make docker-run`
then
`make test`
This should display the computed distance between the two adresses given in parameter in the curl call
Result looks like
```javascript
//HTTP 200
{"result": 23.19747198781676} // Result is in kilometers
```## Licence
[LGPL v3](LICENCE.md)