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
});
}
}