GeoNames Home | Postal Codes | Download / Webservice | About 

GeoNames Forum
  [Search] Search   [Recent Topics] Recent Topics   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
need for help  XML
Forum Index -> General Go to Page: 1, 2 Next 
Author Message
Anonymous



hi

I need help to integrate my website with geoname.For that i need lat and lng from geonames,where do i get this info.
they gave xml as example.how can i get lat and long with that example
Anonymous



Do you want help parsing the XML file with javascript?
Anonymous



yes
Anonymous



I need help for parsing xml with javascript
Anonymous



Plz help me very urgent
marc



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

If you need to call geonames with javascript it might be easier to use JSON.

Did you look at the example :

http://www.geonames.org/maps/json-googlemaps-example.html

Marc

[WWW]
suja



Joined: 25/07/2006 14:54:09
Messages: 17
Offline

Hi
Thanks a lot for your response
The link you have sent just shows the map
http://www.geonames.org/maps/json-googlemaps-example.html

But i need a map for particular postalcode send by user
marc



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

Hi Suja

I have added some text to the example page :
"Enter a place name in the search box and press the search button. You will then get a list of matching place names. Then you click on one of the place names and the map above will display the chosen place."

I suggest you have a look at the code of the search example and afterwards it should not be too difficult to modify it to use the postal code json web service instead of the search webservice.

Marc

[WWW]
Anonymous



Thanks a lot marc,
But i need search to be done in my website,whenever the user enters the postal code in the text box and clicks view map button,it should show the correct location on the map.
suja



Joined: 25/07/2006 14:54:09
Messages: 17
Offline

Thanks a lot marc,
But i need search to be done in my website,whenever the user enters the postal code in the text box and clicks view map button,it should show the correct location on the map.
marc



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

Hi Suja

Something like this ?
http://www.geonames.org/maps/json-googlemaps-example-postal-code.html

Marc

[WWW]
suja



Joined: 25/07/2006 14:54:09
Messages: 17
Offline

hi marc,

what you have send is correct but i need it to search in my website.

http://www.geonames.org/maps/json-googlemaps-example-postal-code.html
suja



Joined: 25/07/2006 14:54:09
Messages: 17
Offline

hi Marc
I'm trying search in my website.if i give postalcode the corresponding map is not displayed.

I think it is in this script. /export/jsr_class.js


Can you help to overcome this problem
marc



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

Hi Suja

Did you copy the script jsr_class.js to your server and change the path in the script "src"?

Marc

[WWW]
suja



Joined: 25/07/2006 14:54:09
Messages: 17
Offline

hi marc
where do i get this script jsr_class.js
marc



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

It is here
http://www.geonames.org/export/jsr_class.js isn't it ?

Marc

[WWW]
suja



Joined: 25/07/2006 14:54:09
Messages: 17
Offline



Plz let me know
suja



Joined: 25/07/2006 14:54:09
Messages: 17
Offline

Hi marc

Thanks a lot it is working fine.


Do you know about Open FTS integration

marc



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

Hi Suja

No, I have never heard about FTS. What is it?

Marc

[WWW]
Anonymous




Its ok.

FTS is Full Text Search

http://www.geonames.org/maps/json-googlemaps-example-postal-code.html

In this link it is not searching for UK postal/Zip code
 
Forum Index -> General Go to Page: 1, 2 Next 
Go to:   
Powered by JForum 2.1.5 © JForum Team