GeoNames Home | Postal Codes | Download / Webservice | About 

GeoNames Forum
  [Search] Search   [Recent Topics] Recent Topics   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Troubling irregularities with search results  XML
Forum Index -> General
Author Message
ftrudeau



Joined: 07/11/2010 18:35:43
Messages: 2
Offline

Hello,

I noticed some troubling irregularities using GeoNames Search Webservice, more specifically when searching for places that contains an apostrophe.

For instance,

107 results (right)
[url]http://ws.geonames.org/searchJSON?lang=fr&style=short&featureClass=P&featureCode=PPL&country=CA&adminCode1=10&name_startsWith=L

107 results (wrong)
http://ws.geonames.org/searchJSON?lang=fr&style=short&featureClass=P&featureCode=PPL&country=CA&adminCode1=10&name_startsWith=L'

0 result (wrong)
http://ws.geonames.org/searchJSON?lang=fr&style=short&featureClass=P&featureCode=PPL&country=CA&adminCode1=10&name_startsWith=L'A

1 result (right)
http://ws.geonames.org/searchJSON?lang=fr&style=short&featureClass=P&featureCode=PPL&country=CA&adminCode1=10&name_startsWith=L'Assompt

Is there a problem with the query in the first place ? If someone could shed light on this, that would be much appreciated.

Thank you.
marc



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

Thanks. There was an issue with apostrophes.

Best

Marc

[WWW]
ftrudeau



Joined: 07/11/2010 18:35:43
Messages: 2
Offline

Ah! Works perfectly now.
Thanks Marc.
 
Forum Index -> General
Go to:   
Powered by JForum 2.1.5 © JForum Team