| Author |
Message |
![[Post New]](/gforum/templates/default/images/icon_minipost_new.gif) 13/09/2010 11:53:00
|
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
|
|
|
 |
![[Post New]](/gforum/templates/default/images/icon_minipost_new.gif) 13/09/2010 15:03:41
|
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
|
 |
|
|
 |
![[Post New]](/gforum/templates/default/images/icon_minipost_new.gif) 13/09/2010 16:10:21
|
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.
|
|
|
 |
![[Post New]](/gforum/templates/default/images/icon_minipost_new.gif) 14/09/2010 07:39:22
|
geotree
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 |
|
|
 |
|
|