Skip to content

Instantly share code, notes, and snippets.

@chrislawlor
Created December 19, 2012 13:27
Show Gist options
  • Save chrislawlor/4336645 to your computer and use it in GitHub Desktop.
Save chrislawlor/4336645 to your computer and use it in GitHub Desktop.
Convert Google Maps LatLng to WKT (http://en.wikipedia.org/wiki/Well-known_text)
google.maps.LatLng.prototype.toPointWKT = function() {
return "POINT("+ this.Za + " " + this.Ya + ")";
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment