Skip to content

lucioerlan/Distance-Between

Repository files navigation

PRETTIER LICENSE LinkedIn Hits


Api Calculate Distance 🐦

Logo

Report Bug · Request Feature

🤔 About The Project

Easily calculate the distance and time between two locations.

1- address Method

2- lat lon Method


🔨 Installation

You'll need Node.js installed on your computer in order to build this app.

git clone https://github.com/lucioerlan/Distance-Between.git
$ cd Distance-Between
$ npm install

🤓 Documentation and running tests


🎋 Request using CURL

$ curl -X GET 'http://localhost:5000/api/search/geo?OriginOne=city=Bujari&OriginTwo=state=AC&DestOne=city=Manaus&DestTwo=state=AM&method=search'

OR

$ curl -X GET 'http://localhost:5000/api/search/reverse?OriginOne=lat=-9.8309656&OriginTwo=lon=-67.9520886&DestOne=lat=-3.1316333&DestTwo=lon=-59.9825041&method=reverse'

🚀 Running

$ npm start 

Or Run Docker 🐳

$ docker-compose up -d

🔓 License

This project lives under MIT License. See LICENSE for more details. © - Erlan Lucio