[GIS] Google Maps and Postgresql

google mapspostgresql

I am looking for a way to visualize data from Postgres in Google Maps, but I have only figured out how to do this for Markers.
I am using PHP to retrieve the data in JSON, which I then request from Google Maps, but I can only find examples for doing this with point data.

  var geocoderFunction = function () { 
        geocoder.geocode({ 'address': road[index] }, 
           function (results, status) {
              if (status == google.maps.GeocoderStatus.OK) {
                 new google.maps.Marker({
                    map: map, 
                    position: results[0].geometry.location
                 });
           }             
   }

Best Answer

I don't understand your question very well.

If you are asking how to display a line with the Google Maps API i think that you should check the documentation about Polyline or check the code samples like this one.