geolucidate.links.google – Google Maps link generator

Returns a function for generating links to Google Maps.

Parameters:
  • type – map type, one of ‘map’, ‘satellite’, or ‘hybrid’
  • link – Link-generating function; defaults to default_link()
>>> from .tools import MapLink
>>> google_maps_link()(MapLink("CN Tower", "43.6426", "-79.3871"))
u'<a href="http://maps.google.com/maps?q=43.6426%2C-79.3871+%28CN+Tower%29&ll=43.6426%2C-79.3871&t=h" title="CN Tower (43.6426, -79.3871)">CN Tower</a>'

Previous topic

geolucidate.links.bing – Bing Maps link generator

Next topic

geolucidate.links.osm – OpenStreetMap link generator

This Page