postal codes - french departements

46 views
Skip to first unread message

tomle...@googlemail.com

unread,
May 17, 2010, 6:50:29 PM5/17/10
to geoPlugin
Hi,
I've implemented Your web service in my PHP app, looks like it works
like a charm. It's a french site and we need the French departements,
see http://www.insee.fr/fr/methodes/nomenclatures/cog/departement.asp,
and not to confound with the region, that another thing.

I could extract them from the postal code, the first two digits are in
fact the departement number.

Any advise ?

geoPlugin Support

unread,
May 26, 2010, 4:57:11 PM5/26/10
to geop...@googlegroups.com
Hi,

I;m very sorry for the delay in replying but I never saw the message pending in Google groups until another one came into the pipeline...

In fact, implementing your request directly would be impossible, since the immediate lookup of IP is based on a proprietary database that we cannot modify. 

However, if you comine the initial lookup, that gives latitude/longitude values, with the the "Latitude/Longitude to Postal Code" webservice (see http://www.geoplugin.com/webservices/extras#latitudelongitude_to_postal_code )
then this should achieve what you are looking for....


For example, that geoPlugin page says for me:

The closest place with a post code we have on file for 43.2999992371/5.40000009537 (you) is:

	 Place: La Pomme
Country Code: FR
Post Code: 13720
Latitude: 43.2832985
Longitude: 5.4333000
Distance (miles): 2.03
Distance (km): 3.27
Confidence: 4

Which is not 100% accurate for the postal code per se, but is 100% accurate for the region 13 (Bouches du Rhone).

Does this help you?

Let me know
Andy


--
You received this message because you are subscribed to the Google Groups "geoPlugin" group.
To post to this group, send email to geop...@googlegroups.com.
To unsubscribe from this group, send email to geoplugin+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/geoplugin?hl=en.


Reply all
Reply to author
Forward
0 new messages