0
votes

Hi I'm trying to build phonegap app to track vehicle based on their mobile gps data. I went through google map API page and found the below

  • Google Maps Directions API
  • Google Maps Distance Matrix API
  • Google Maps Elevation API
  • Google Maps Geocoding API
  • Google Maps Geolocation API
  • Google Maps Roads API
  • Google Maps Time Zone API
  • Google Places API Web Service

Out of all these API I feel google map Roads API is the possible choice for me but, the demo is not looks like what I wants to build...

Can anyone advice me or direct me to the right direction....

My goal is to build an app for tracking the path a vehicle travel on map...

2

2 Answers

1
votes

@Ferdinand,

you want geolocation, or Actually *reverse-geolocation*. The information you need is spread across Google's documentation for geolocation and few other libraries.

I have built the same App as you. It is one of my demo apps. Feel free to use as much or as little as you need. It is part of a tutorial.

Jesse

0
votes

I would suggest you go with the cordova-plugin-googlemaps plugin. It says it works with phonegap.

The plugin has the ability to get the gps location and it lets you draw a line (Polyline) on the map.

It has great documentation and is very similar to the google maps apis.