Won't find the town "Orange" in France?

30 views
Skip to first unread message

Andy Newby

unread,
Oct 10, 2011, 5:07:40 AM10/10/11
to google-map...@googlegroups.com
Hi,

I'm using Geo-Coding to grab a lat/lng value for a place name entered, and then searching our external DB. However, it doesn't seem to wanna find a place called "Orange" in France, which I can find fine on the main site:

http://maps.google.com/maps?q=orange&hl=en&ie=UTF8&ll=44.128014,4.96582&spn=0.414988,1.344452&sll=44.142305,4.805832&sspn=0.09781,0.336113&vpsrc=6&hnear=Orange,+Vaucluse,+Provence-Alpes-C%C3%B4te+d%27Azur,+France&t=h&z=10

Here is the place it gives an error:

http://www.chambresdhotes.org/cgi-bin/links/page.cgi?g=Google_Maps&t=espanol&q=Orange&radiusSelect=30

I'm making sure I pass in lang=fr to force it to use french spellings (otherwise we have weird errors, like other place names not being found).

This issue also applies to GMaps v2 API (I havn't updated this page yet to the v3 one) - http://www.chambresdhotes.org/Google_Maps/?q=orange&radiusSelect=30&submit=Recherche

Anyone got any suggestions?

TIA

Andy

Andrew Leach

unread,
Oct 10, 2011, 7:31:28 AM10/10/11
to google-map...@googlegroups.com
On 10 October 2011 10:07, Andy Newby <andy....@gmail.com> wrote:
>
> Here is the place it gives an error:
>
> http://www.chambresdhotes.org/cgi-bin/links/page.cgi?g=Google_Maps&t=espanol&q=Orange&radiusSelect=30
>

I get an error with google.ads in both your urls. However, it does
look like the API geocoder can't locate Orange, France, although the
last attempt here gets nearest:

http://maps.googleapis.com/maps/api/geocode/xml?address=orange,france&sensor=false
http://maps.googleapis.com/maps/api/geocode/xml?address=orange,provence&sensor=false
http://maps.googleapis.com/maps/api/geocode/xml?address=orange,vaucluse&sensor=false

Even adding bounds specifying France doesn't help:

http://maps.googleapis.com/maps/api/geocode/xml?address=orange,france&sensor=false&bounds=42.1331639,-5.9820520|50.0380022,10.4095500

The API geocoder is different from the Maps geocoder. You may need to
raise an issue.
http://code.google.com/p/gmaps-api-issues/issues/list

Pil

unread,
Oct 10, 2011, 9:54:31 AM10/10/11
to Google Maps JavaScript API v3
Try

Orange, Orange, fr

(An old trick seems still working in this case.)



On Oct 10, 11:07 am, Andy Newby <andy.ne...@gmail.com> wrote:
> Hi,
>
> I'm using Geo-Coding to grab a lat/lng value for a place name entered, and
> then searching our external DB. However, it doesn't seem to wanna find a
> place called "Orange" in France, which I can find fine on the main site:
>
> http://maps.google.com/maps?q=orange&hl=en&ie=UTF8&ll=44.128014,4.965...
>
> Here is the place it gives an error:
>
> http://www.chambresdhotes.org/cgi-bin/links/page.cgi?g=Google_Maps&t=...
>
> I'm making sure I pass in lang=fr to force it to use french spellings
> (otherwise we have weird errors, like other place names not being found).
>
> This issue also applies to GMaps v2 API (I havn't updated this page yet to
> the v3 one) -http://www.chambresdhotes.org/Google_Maps/?q=orange&radiusSelect=30&s...

sgiddings

unread,
Oct 11, 2011, 4:01:02 AM10/11/11
to Google Maps JavaScript API v3
Nice tip Pil.

However, this is not really an acceptable situation.
Taking into account that work has been undertaken by Google to improve
coverage in Europe, notably in France, this should not occur.
Our users will not have the reflex to do this kind of manipulation -
which will give a bad image to our sites, even if it is out of our
control.

The user will not make the difference between our sites and Google,
they only see our site.

Do we need to open a bug report ?
Do we need to send a problem report to Thor Mitchell ?

Chris Broadfoot

unread,
Oct 12, 2011, 9:40:03 AM10/12/11
to google-map...@googlegroups.com
Hi all,

To help mitigate problems like these I strongly recommend you use the Places Autocomplete. It's a perfect fit for use cases like this.

Here's a quick demo:

By typing "orange france" I get the correct result straight away.

Nevertheless, I've filed this problem with the data team.

--
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-map...@googlegroups.com.
To unsubscribe from this group, send email to google-maps-js-a...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.


sgiddings

unread,
Oct 14, 2011, 3:06:51 AM10/14/11
to Google Maps JavaScript API v3
Hi Chris,

Posted this yesterday, don't know what happened but it disappeared.

Can we have a link to the problem record so that we can track the
resolution ?

For those of us who do not use the Places Autocomplete, what can you
suggest ?
I find it strange that when geocode requests are region biased to
France, that the geocoder can still not find the correct result.

Simon

On Oct 12, 3:40 pm, Chris Broadfoot <c...@google.com> wrote:
> Hi all,
>
> To help mitigate problems like these I strongly recommend you use the Places
> Autocomplete. It's a perfect fit for use cases like this.
>
> Here's a quick demo:http://code.google.com/apis/maps/documentation/javascript/examples/pl...
>
> By typing "orange france" I get the correct result straight away.
>
> Nevertheless, I've filed this problem with the data team.
>
> Chris
>
> --http://twitter.com/broady

sgiddings

unread,
Oct 14, 2011, 3:22:54 AM10/14/11
to Google Maps JavaScript API v3
Heads up, its me again...

I've done some further testing :
For a geocode request like this -
var Geocoder = new google.maps.Geocoder();
GeoCoder.geocode( {'address' : "Orange, France", 'region' : "FR"},
ProcessGeoCode);

I get the following result list :
France Service Rd, Bay Lake, Floride, États-Unis
Consulate General of France, 7657 Mt Carmel Dr, Orlando, Floride
32835-8164, États-Unis
France Pavilion, France Service Rd, Bay Lake, Floride 32836, États-
Unis

Something is seriously wrong here !
Simon
Reply all
Reply to author
Forward
0 new messages