Google Maps just ignores stuff in brackets. (or more precisely its
used as a custom label) GMaps doesnt even try to understand the
meaning of the "municipality" wording.

try clicking the marker on the map to get the balloon
http://maps.google.com/maps?q=brussels+(municipality)
and compare with
http://maps.google.com/maps?q=brussels+(hay,+this+looks+a+nice+place)

So (...) is special syntax for Google Maps website itself.
 - which just happens to mean it doesn't interfere with the
'geocoding' process.


... so just strip of any bits in brackets when sending to the geocoder
- it's not going to work .





On Fri, Dec 9, 2011 at 7:05 PM, Salar al Khafaji <sa...@typlab.com> wrote:
> Hi,
>
> We are seeming an anomaly with a specific string when using the Geocoding
> API.
>
> When searching for the exact string "Brussels (municipality)" on the
> Geocoding API, we're getting a location in the Philippines while we're
> expecting the capital of Belgium. This also occurs on the simple geocoding
> example provided by
> Google: http://code.google.com/apis/maps/documentation/javascript/examples/geocoding-simple.html
>
> However, searching for the same string on Google Maps is returning the
> correct location: http://maps.google.com/maps?q=brussels+(municipality). We
> do note that the suggest feature of Google Maps is also returning the
> location in the Philippines, but it seems to be ignored when actually
> performing the search.
>
> Is this an issue with the Geocoding API or on the Maps data level? We'd love
> to see this resolved.
>
> Thanks!
> Salar
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Maps JavaScript API v3" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-maps-js-api-v3/-/3XtWH0pPv7IJ.
> To post to this group, send email to google-maps-js-api-v3@googlegroups.com.
> To unsubscribe from this group, send email to
> google-maps-js-api-v3+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-maps-js-api-v3?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To post to this group, send email to google-maps-js-api-v3@googlegroups.com.
To unsubscribe from this group, send email to 
google-maps-js-api-v3+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.

Reply via email to