GeoNames Home | Postal Codes | Download / Webservice | About 

GeoNames Forum
  [Search] Search   [Recent Topics] Recent Topics   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Messages posted by: bruno bernardino  XML
Profile for bruno bernardino -> Messages posted by bruno bernardino [3]
Author Message
Thanks! It works now!
Hi,

I have a weird problem with a specific place: "Maharepa" from the "French Polynesia" shows up in the main search:
http://www.geonames.org/search.html?q=maharepa&country=

But not on the XML Webservice:
http://ws.geonames.org/search?q=maharepa&maxRows=30&style=FULL&country=

Can anyone explain me this? Or am I doing something wrong?
Hi, I'm having problems with the ' character (single quote)...

The URL I'm getting is http://ws.geonames.org/search?name_equals=Bassin%20d%27Arcachon&country=FR&maxRows=30&style=FULL&lang=fr

The GeoName is Bassin d'Arcachon, I'm using php like this:

Code:
$xml = simplexml_load_file("http://ws.geonames.org/search?name_equals=".rawurlencode(utf8_encode(stripslashes($loc)))."&country=$cp&maxRows=30&style=FULL&lang=fr");


where $loc is utf8-decoded and rawurldecoded already.

Does any of you have this problem?

This is the location: http://www.geonames.org/3037252/bassin-d-arcachon.html
 
Profile for bruno bernardino -> Messages posted by bruno bernardino [3]
Go to:   
Powered by JForum 2.1.5 © JForum Team