Search code examples
google-mapscoordinatesinfowindowgoogle-maps-api-2

Look for coordinates - display an info window with a name on Google Maps


In Google Maps v2 GClientGeocoder.getLocations() you can search for an address or for GLatLng.

Is there a way to combine these two, namely:

  • search for a string containing both values, something like Home @12.345,21.8970
  • have the result (anchored at the coordinates) on map with a place name (Home) in the info window?

Solution

  • Finally found. :)

    Type into Google Maps search field:

    12.345,21.8970 (Whatever)
    

    or try the link http://maps.google.com/maps?q=12.345,21.8970+(Whatever)&iwloc=A