Skip to content

juniorabranches/googleMaps-Distance-Service

Repository files navigation

  1. Create project or use existing one in Google Developer Console;

In the list of Dashboard APIs, look for the Google Maps Distance Matrix API, Google Maps Javascript API, Google Maps Geolocation API and Google Maps Directions API and activate the 4;

  1. Install the dependencies:

npm i

  1. Run the project

ionic serve -l

Distance between 2 points

Search for device latitude and longitude (ORIGIN);

It has 2 inputs to define target latitude and longitude;

Button for calculating distance and approximate time.

View this

About

example to calculate distance between 2 points

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published