GeoNames Home | Postal Codes | Download / Webservice | About 

GeoNames Forum
  [Search] Search   [Recent Topics] Recent Topics   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
from address to lati and longi  XML
Forum Index -> General
Author Message
il_dandi



Joined: 05/08/2011 13:46:19
Messages: 6
Offline

Hi dears, is it possible to calculate lati and longi using address/town/city/state informations???
I'd like to know if there an easy solution for PHP

Thanks
il_dandi



Joined: 05/08/2011 13:46:19
Messages: 6
Offline

Nobody can help me??
marc



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

There is a search for placenames:
http://www.geonames.org/export/geonames-search.html

And a search for postalcodes:
http://www.geonames.org/export/web-services.html#postalCodeSearch

A search for address is not yet provided by GeoNames.

Marc

[WWW]
il_dandi



Joined: 05/08/2011 13:46:19
Messages: 6
Offline

Hi dear!! thaks for your reply and your reply... is this service free??

So I can call this WS:

api.geonames.org/search?country=MyCountry&(how to set town and city)??

And I'll have lati and longi??

How Can I read lati and longi returned??

Thanks!!!!
il_dandi



Joined: 05/08/2011 13:46:19
Messages: 6
Offline

Nobody can help me??
il_dandi



Joined: 05/08/2011 13:46:19
Messages: 6
Offline

Nothing??? I still have this problem ((
il_dandi



Joined: 05/08/2011 13:46:19
Messages: 6
Offline

If I use this

http://www.geonames.org/export/geonames-search.html


I'll call my URL with something like:
api.geonames.org/search?


Can you tell me how Can I read results (in PHP) for have in 2 variables lati and longi values?

Thanks
marc



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

use the forum search to search for other threads regarding parsing xml (or json if you prefer) in php. You will for instance find this thread:
http://forum.geonames.org/gforum/posts/list/1045.page

Or use google to get general information on how to parse xml or json with php.

Marc

[WWW]
 
Forum Index -> General
Go to:   
Powered by JForum 2.1.5 © JForum Team