Live GPS tracking with car in google maps

I developed google map integration in Ionic. It work’s fine. I need live GPS tracker with marker when vehicle moves on road direction. I searched a lot in google I didn’t get any solution. Is this possible!!!. please help me.

me too. i developed google


but i have database in sql. i show

Are you show any moving objects in google map!!!

i have json with lat,lng but i dont know show. do you know get data?\

Take a that json data into array and run into the for loop with markers.

var locations = [
[address, hosplatitude,hosplongitude],
[‘Patient’, position.coords.latitude, position.coords.longitude],
[‘Jail road’, 17.7138, 83.3035],
[‘Rama Takies’, 17.7286, 83.3125],
[‘Maddilapalem’, 17.7375, 83.3215],
[‘gurudwar’, 17.7366, 83.3085],
[‘siripuram’, 17.7204, 83.3168]
];

        var map = new google.maps.Map(document.getElementById('map'), {
                zoom: 10,
                center: latLng,
                map: map,
                mapTypeId: google.maps.MapTypeId.ROADMAP
          });

        var infowindow = new google.maps.InfoWindow();

        $ionicLoading.hide();
        var marker, i;
        for (i = 0; i < locations.length; i++) {

                      marker = new google.maps.Marker({
                              animation: google.maps.Animation.DROP,
                              position: new google.maps.LatLng(locations[i][1], locations[i][2]),

                              map: map,
                              travelMode: google.maps.DirectionsTravelMode.DRIVING
                      });

                    google.maps.event.addListener(marker, 'click', (function(marker, i) {
                            return function() {
                              infowindow.setContent(locations[i][0]);
                              infowindow.open(map, marker);
                            }
                    })(marker, i));
        }

format json but call http://localhost/ionic2/src/assets/data/devices img postman. now i show listdata and location.

can you get how to get live location? i also tried but no luck can you help me?