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

Incorrect distance showing #47

Open
supersaiyanesee opened this issue Oct 28, 2020 · 3 comments
Open

Incorrect distance showing #47

supersaiyanesee opened this issue Oct 28, 2020 · 3 comments

Comments

@supersaiyanesee
Copy link

Hello,

I just used the library, but I noticed that the distance returned was incorrect.

dist = pgeocode.GeoDistance('PH')
dist.query_postal_code('0860', '1227')

returns 76 kms. I am sure that the distance is not 76kms. The source maybe was the lat, long provided as I tried googling the provided values for 1227 but it was located in a very far province.

@rth
Copy link
Member

rth commented Oct 28, 2020

Could you check if the GPS coordinates in the data file are correct? Yeah, it looks like it should indeed be much more. Most likely one of the included GPS coordinates is not correct, and we currently have not easy way to correct for it.

@al6133
Copy link

al6133 commented Jan 19, 2021

Does this return the distance in Km or miles?

@rth
Copy link
Member

rth commented Jan 20, 2021

Does this return the distance in Km or miles?

km.

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

No branches or pull requests

3 participants