You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 5, 2026. It is now read-only.
where the first part references a certain area and the second part a smaller area within.
People are usually working with this type of postcodes, but they don't match the records in our geocoder, as it only works with the first part of the postcode.
A transformation like this is needed to get only the first part:
SELECT
*,
trim(trailing ' ' from (
substring(postcode from 1 for 4)
)
) AS postcode_fixed
FROM table
However, that causes a lesser quality result, as we are lacking the second level of precision.
The database at Geonames does recognise the postalcodes with two parts (check it here).
Would it be possible to integrate that info in our geocoding database?