GeoNames Home | Postal Codes | Download / Webservice | About 

GeoNames Forum
  [Search] Search   [Recent Topics] Recent Topics   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Address Format When Making an XML Geocoding Request  XML
Forum Index -> General
Author Message
Web_Writer



Joined: 10/03/2018 13:10:19
Messages: 1
Offline

I tried searching to see if this has already been answered but I wasn't able to find one.

When using the Address Geocoding Webservice:

api.geonames.org/geoCodeAddress?q= 'Address'


Is there an order to the elements used in the Address field?

And

Can any of the following fields be used?

Continent - Edit: I have this figured out, Contient='Continent Code'
Country - Edit: I have this figured out, Country='Country Code'

Edit: But I'm still not sure how to order the following fields, especially if any are missing.

House Number
Street Name
City
State / Provence
Postal Code

Example: "123+Street Name+City Name+State+Postal"

What if say the Street Name is missing but the rest of the fields are known, are there wild card characters that can be used as place holders?

Example: "123+??+City Name+State+Postal"

If the above fields can be used, is there an order to their placement?

thanks.


marc



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

Hi

The service now accepts two optional parameters:
country (iso country code)
and
postalcode

The parameter 'continent' is in the pipeline and will be supported soon.

The order does not matter, missing elements can just be left out. Add the info you have to the q parameter and the service will do its best.
When the street is missing it may return a different street with the same house number.

The service is described here:
http://www.geonames.org/maps/addresses.html#geoCodeAddress

You find also the list of supported countries on the page above.

Best Regards

Marc

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