GeoNames Home | Postal Codes | Download / Webservice | About 

GeoNames Forum
  [Search] Search   [Recent Topics] Recent Topics   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
postalCodeSearch: place name language, and accented characters  XML
Forum Index -> Postal Codes
Author Message
gonfi



Joined: 17/02/2011 20:30:43
Messages: 11
Offline

noticed behavior of the http://www.geonames.org/export/web-services.html#postalCodeSearch

when searching for place names (placename_startsWith) it only looks in one field which contains the primary spelling of the place name in the primary local language.

examples from switzerland:
- Fribourg (no match for Freiburg)
- Genève (no match for Genf)

also, accents must match:
- Geneve finds nothing
- Zurich finds nothing

in contrast to this, the http://api.geonames.org/search service does match
- accented characters vs. us-ascii. maybe that's done with additional fields with the spelling in us-ascii, i don't know
- multiple languages (genf/geneve/genève) etc.

my use case:
a search form with an optional geo search attribute. the user can select a place as a search criteria, and only nearby records are shown. selecting the place works by typing a zip code and/or place name, and then selecting one of the offerings.
the 'postalCodeSearch' seems to be the correct web service for this: it offers searching by post code, or by place name, and returns the coordinates.
the 'search' service does not allow searching by post code, and does not return post codes either. so when looking for a place name like 'Pfäffikon' much more post processing needs to be done (filtering, and finding the zip code).
combining multiple api methods and firing multiple calls for one search to get the data that i need sounds like a pain.

it would be great if the 'postalCodeSearch' was behaving like the 'search' service.
geotree


[Avatar]
Joined: 23/07/2007 18:28:40
Messages: 138
Location: France
Offline

I confirm that :

placename_startsWith=Genèv returns Genève
placename_startsWith=Genev returns nothing

@Marc: any idea how to fix this ?

Christophe
geotree.geonames.org
geotree.geonames.org/geotree.html
[WWW]
marc



Joined: 08/12/2005 07:39:47
Messages: 4501
Offline

Thanks Christophe.

The placename_startsWith was an issue on the server side. The service now does a conversion to ascii for this parameter and will find the places.

The translations to other languages are not yet implemented in the postal code search. This is still on the todo list.

Best Regards

Marc

[WWW]
 
Forum Index -> Postal Codes
Go to:   
Powered by JForum 2.1.5 © JForum Team