Geocoding of international (Swedish) characters doesn't work?

61 views
Skip to first unread message

André Johansson

unread,
Jun 10, 2011, 4:29:56 AM6/10/11
to google-map...@googlegroups.com
Hello,

I'm having problems geocoding Swedish adresses with the v3 javascript api. If I query for the incomplete address "helsingborgsv" I get a list of result but when I query for "helsingborgsvä" I get ZERO_RESULTS.

The same behaviour manifests on googles own sample page: http://gmaps-samples-v3.googlecode.com/svn/trunk/geocoder/v3-geocoder-tool.html (try searching for both "helsingborgsv" and "helsingborgsvägen").

Since the error seems to depend on characters I've tried to encode my query in different ways but without success. I've tried using escape, encodeURI and custom UTF8 encoding functions to encode my query before I pass it to the API but I can't get it to work.

Is this a bug or am I missing something?

Andrew Leach

unread,
Jun 10, 2011, 4:37:09 AM6/10/11
to google-map...@googlegroups.com
2011/6/10 André Johansson <andre.j...@gmail.com>:

> Since the error seems to depend on characters I've tried to encode my query
> in different ways but without success. I've tried using escape, encodeURI
> and custom UTF8 encoding functions to encode my query before I pass it to
> the API but I can't get it to work.
> Is this a bug or am I missing something?

If it's any help, helsingborgsvaegen works. Whether it's correct or
not in Swedish to replace ä with ae, I couldn't say -- although it is
in German.

André Johansson

unread,
Jun 10, 2011, 4:41:05 AM6/10/11
to google-map...@googlegroups.com, andrew....@gmail.com
Thanks for your reply,

Yes it works, I noticed that too. But its not correct in Swedish to translate it and moreover it's not very userfriendly so it won't help me much. :-(
Reply all
Reply to author
Forward
0 new messages