Hi,
Cédric Krier <[email protected]>, Sat, 10 Sep 2011 11:36:12 +0200:
> On 09/09/11 20:58 -0700, Bruno (Thymbra) wrote:
> > Hi,
> > Contributing use autocomplete fields, to have validated data,
> > always seems to me an excellent idea. As Udo Spallek proposes, to
> > provide modules with xml data like the chart of accounts, it was my
> > intention in writing the module country_ar.
> Such modules could be integrated in Tryton only if we got an reliable
> way maintain the list of cities, like we have with countries.
I don't think there is reliable data for world wide post codes[1].
Post codes seems often to be semi-official like the data we actually use
for the charts of accounts. If we really want/need this data in Tryton
we should support free sources like geonames[2][3] or openstreetmap. 

But do we really want to provide and maintain a static duplication of
this kind of data within Tryton? I think not.

> > Be a matter of doing some testing with your proposal and check if
> > it matches the problem in my country.
> I only do a design proposal, I really don't know if I will have time
> to work on the implementation but anybody can implement it.
We could extend the party module with the functionality to save
given tuples of zip(postal code), city, subdivision and country. This
will help the users anyway, because they always need to encode these
information only once. 

But what exactly should be the functionality? 

* Is it for looking up city and nation names by postal codes? 
* Is it for reverse looking up postal codes by cities?

  * Looking up postal codes depends at least in Germany from city, 
    street name and house number (See e.g. the table in [4],
    'PLZ' is the postal code). Openstreetmap address this
    problem by collecting pairs of geo-location and postal code. So
    things can get complicated for reverse lookup.

* Or is it both?

In a next independent step, other modules could provide a way to auto
fill in data for missing postal codes. Here my preference is to use
a free data web service like geonames[5].

Other modules are possible, too. Modules can provide statical data like
done in country_ar, or pay-services can be connected like postcoder[6],
mentioned by Sharoon.

Cheers Udo

[1]
http://wiki.openstreetmap.org/wiki/Postal_code#Sources_of_post_code_data
[2] http://geonames.org
[3] http://download.geonames.org/export/zip/
[4] http://wiki.openstreetmap.org/wiki/Free_The_Postcode#DE
[5] http://www.geonames.org/postalcode-search.html
[6] http://www.postcoder.com/

-- 
_____________________________
virtual things
Preisler & Spallek GbR
München - Aachen

Windeckstr. 77
81375 München
Tel: +49 (89) 710 481 55
Fax: +49 (89) 710 481 56

[email protected]
http://www.virtual-things.biz

-- 
[email protected] mailing list

Reply via email to