symerio / pgeocode

Postal code geocoding and distance calculation
https://pgeocode.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
231 stars 57 forks source link

Incorrect distance showing #47

Open supersaiyanesee opened 3 years ago

supersaiyanesee commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

Does this return the distance in Km or miles?

rth commented 3 years ago

Does this return the distance in Km or miles?

km.