GeoNames Home | Postal Codes | Download / Webservice | About 

GeoNames Forum
  [Search] Search   [Recent Topics] Recent Topics   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Messages posted by: fred.wolf  XML
Profile for fred.wolf -> Messages posted by fred.wolf [4]
Author Message
Hi Marc,

I would appreciate the full postal code dump for our project. My email address is fred.bobelweb@gmail.com

Thank you !

Cheers,

Fred
Hi Mark,

maybe this question has been asked to you hundred times, but I couldn't find any answers in the forum topics.

I made the following request :

[url]
http://ws.geonames.org/postalCodeSearch?maxRows=10&country=FR&postalcode=57590&placename=Delme
[/url]

and the result is :

Code:
 <geonames>
 <totalResultsCount>1</totalResultsCount>
 −
 <code>
 <postalcode>57590</postalcode>
 <name>Delme</name>
 <countryCode>FR</countryCode>
 <lat>48.8833333</lat>
 <lng>6.4</lng>
 <adminCode1>M</adminCode1>
 <adminName1>Lorraine</adminName1>
 <adminCode2>57</adminCode2>
 <adminName2>MOSELLE</adminName2>
 <adminCode3>57171</adminCode3>
 <adminName3/>
 </code>
 </geonames>
 


First, I noticed that adminCode1 is in a fips format but in iso one in the dump.

Then I made another request :


[url]
http://ws.geonames.org/search?maxRows=10&featureCode=PPL&country=FR&q=Delme&adminCode1=B2&adminCode2=57&maxRows=10&style=LONG&lang=fr
[/url]

The result is :

Code:
 <geonames style="LONG">
 <totalResultsCount>1</totalResultsCount>
 −
 <geoname>
 <name>Delme</name>
 <lat>48.8833333</lat>
 <lng>6.4</lng>
 <geonameId>3021626</geonameId>
 <countryCode>FR</countryCode>
 <countryName>France</countryName>
 <fcl>P</fcl>
 <fcode>PPL</fcode>
 <fclName>city, village,...</fclName>
 <fcodeName>populated place</fcodeName>
 <population>754</population>
 </geoname>
 </geonames>
 


Then I request in the database for the geonames id returned :3021626
admin1_code is B2 (iso)
admin2_code is 57
admin3_code is 572
admin4_code is 57171

Why in the postal Code Search admin3_code is 57171 (which is the admin_code 4 in the database?)

I'm also wondering why the admin1_code format is ISO in the dump and FIPS in the ws result ?

Thank you by advance

Fred

P.S : I have another question. If I notice a (noticeable) difference between geonames and googlemaps about the lat and lng coords for the same place, should I rely on the google one and make the change in geonames, or just send you the case for information ?
Hi,
do you want to search everything but hotels or specific features ?

You could use the feature parameter more than once. It's a little bit heavy but it should work.

Fred
Hi Mark,

Thank you for the link.

But one thing puzzles me, admin1_code in geonames are differents from admin1_code from postal codes ones. I searched in the forum clue but I didn't find anything. Can you enligthen me please ?

Edit :

Ok, I read more carefuly the doc and I found that postal code has admin1 ISO 3166-2 codes and geonames fips codes. Is that right ?

My goal was to link postal codes to geonames using coutry, admin-1 and admin_2. Which fields do you utilize in the web service to link the two tables ?

regards,

Fred
 
Profile for fred.wolf -> Messages posted by fred.wolf [4]
Go to:   
Powered by JForum 2.1.5 © JForum Team