Skip to content

Instantly share code, notes, and snippets.

@guilleiguaran
Created September 25, 2010 16:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save guilleiguaran/597042 to your computer and use it in GitHub Desktop.
Save guilleiguaran/597042 to your computer and use it in GitHub Desktop.
$.getJSON("/test_route?start_lat="+startLat+"&start_lon="+startLon+"&end_lat="+endLat+"&end_lon="+endLon, function(data) {
alert(data);
$.each(data, function(i, coord){
var latlng = new google.maps.LatLng(coord[0], coord[1]);
route.push(latlng);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment