Skip to content

AvinashKrSharma/vehicle-movement-animation-google-maps

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Vehicle Live Movement using Google Maps APIs

This is a very very basic web-app that does the following:

  • Take two locations as inputs.
  • Find the latlong values of those locations using the Geolocation API.
  • Find a route between those latlong pairs.
  • Draw a polyline route connecting those two values.
  • Create a marker and a small infoWindow for source, destination and moving marker(stores the information related to that marker i.e. location name etc).
  • Update the marker every 100 milliseconds till it reaches the destination starting from the source.

See it working

  • Just clone the repo and open index.html file.
  • Enter any two locations and click "Start".
Note: Other implementation details can be found in the code as comments.
It's more focussed towards maps api. CSS is not the focus here(the inputs and buttons).

About

A very very very basic vehicle(marker) animation on (a) route(s)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published