GeoNames Home | Postal Codes | Download / Webservice | About 

GeoNames Forum
  [Search] Search   [Recent Topics] Recent Topics   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
How can I parse the JSON data feed?  XML
Forum Index -> General
Author Message
Maxime



Joined: 13/09/2010 11:35:56
Messages: 3
Location: France
Offline

Hi,

First of all, thanks for creating GeoNames, this is a very usefull site...
I'm using the ajax postalcode autocomplete script which is displaying the latitude and longitude like in this example and it works fine, but at the end of the page you say that we can use a JSON parser.
I have downloaded the json2.js file on json.org, but I don't know how to parse the JSON data feed from GeoNames...
I know that I need to parse jData but how can I do that ? I have tried many times but I don't really understand JSON.
Can you help me please?

Thanks,
Maxime
marc



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

I suggest you don't use a parser if you don't know how to do it. It is not required, it works even easier without.

Cheers

Marc

[WWW]
Maxime



Joined: 13/09/2010 11:35:56
Messages: 3
Location: France
Offline

Hi Marc,

Thanks for your reply but I would like to use one.
I'm sure it's not very difficult to include a parser for some guys here, maybe someone did it...
PHP is OK for me, Javascript slightly less, I'm just a newbie for JSON.
geotree


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

Did you have a look to this thread:
http://forum.geonames.org/gforum/posts/list/1791.page

Christophe
geotree.geonames.org
geotree.geonames.org/geotree.html
[WWW]
 
Forum Index -> General
Go to:   
Powered by JForum 2.1.5 © JForum Team