temospena / CP7

Portuguese zip codes with coordinates
GNU General Public License v3.0
22 stars 5 forks source link

CP7

Portuguese zip codes with coordinates
Códigos Postais de Portugal, georreferenciados

About

The portuguese CP (zip code) is made by a combination of 4 + 3 digits.
The first 4 digits have a correspondence of an area, normaly equivalent to the old districts (Freguesias pré 2014), or districts together. For example, Arroios can be 1000, 1150 or 1170. The Parque das Nações and Moscavide can be 1990 or 1998 :blush:

Aproximation of CP4, for Lisbon

All those who start with 1000 are from Lisbon and its surroundings. Those CP4 ending in 1, 6 or 9, are normally for commercial, institutional, or compannies addresses, and they do not hold an own area of influence.
The last 3 digits (CP7) indicate a street or street segment (edge of a block), a point in the middle of that street segment.
The coordinates of this point that can be extracted, giving a very approximate location of the actual address.

An aproximated influence area of Lisbon's CP7, using Voronoi for the CP7 point coordinates, is this: Voronoi with centroids

The estimated CP4 areas for Portugal, matched with administrative areas, looks like this: Matched areas
(Although some holes are pretty obvious, it would require some non-automatized process to fill them without redundance)

Sources

This compilation was made by Rosa Félix. The sources used were: