Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I collected 5 sets of coordinates of moving vehicles and I want to play the scene using googlemaps API showing those 5 vehicles moving. The sets are saved in a postgresql table.

is it possible ? if yes how ?

what I found for the moment is only one vehicle.

Thanks in advance


share|improve this question
Are these 'moving vehicles' live? Google Maps API terms 10.2 c You must not use the Service or Content"(iii) enterprise dispatch, fleet management, business asset tracking or similar applications" – Mapperz Nov 8 '12 at 15:56

Yes it is possible. One way would be to make a php webservice that sends either part or all of the vehicle traces as a json output to a website. On your website you could have javascript that handles the displaying of a Google Map and also creates markers representing your vehicles. Then you could set a javascript timer that updates the map by requesting the gps location of the vehicles from the server at a specific time (or it could just go through a large json object returned from the server when the page loads).

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.