Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pgeocode: Accuracy scale #9

Open
BryanChuinkam opened this issue Apr 20, 2019 · 2 comments
Open

pgeocode: Accuracy scale #9

BryanChuinkam opened this issue Apr 20, 2019 · 2 comments

Comments

@BryanChuinkam
Copy link

I think it's a great package. I am trying to use the package for Canadian postal codes.

  1. Regarding the accuracy scale used. I can't find an explanation for each number (3,5 and the blanks). All i found was:
    1=estimated,
    4=geonameid,
    6=centroid of addresses or shape
@rth
Copy link
Member

rth commented Apr 23, 2019

We are using the GeoNames database for postal codes. From their readme, http://download.geonames.org/export/zip/

For many countries lat/lng are determined with an algorithm that searches the place names in the main geonames database
using administrative divisions and numerical vicinity of the postal codes as factors in the disambiguation of place names.
For postal codes and place name for which no corresponding toponym in the main geonames database could be found an average
lat/lng of 'neighbouring' postal codes is calculated.

it also lists the 3 codes you mentioned. From an earlier forum post,

Accuracy is an integer, the higher the better :
1 : estimated as average from numerically neighboring postal codes
3 : same postal code, other name
4 : place name from geonames db
6 : postal code area centroid

maybe asking on the Geonames mailing list would help getting more information as well.
 

@romil-patel
Copy link

As mentioned

Accuracy seems to describe where the values have been taken rather than the accuracy of the coordinated for postal code.
Can you @rth please give more details on the same and order according to the more precise and accurate values which can be used for query_postal_code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants