Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NOTE: Create a .env file in root folder, insert the following rows:

PORT: Your desired port number AP_KEY: Your Google Distance Matrix API Key

In PWD (Present Working Directory), run "node app.js" OR "nodemon app.js" (AFTER installing nodemon using "npm install -D nodemon") to run the server in localhost.

URL of POST Request: localhost:PORT/maps

In Request Body, pass {"ORIGIN": "your origin", "DESTINATION": "your destination"} object.

In Response body, you will get DISTANCE between ORIGIN - DESTINATION and DURATION (Time it takes to reach from ORIGIN - DESTINATION).

About

Fetching distance and time taken between point A and point B using Google Maps API

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages