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

Pgeocode | HTTPError: HTTP Error 404: Not Found #44

Closed nikzjadhav closed 3 years ago

nikzjadhav commented 4 years ago

Hello ,

I am using pgeocode to fetch longitude and latitude from postal code. as i am using this package from last few months i am facing issue of HTTP

image

currently this issue happening more frequently than past. This is hampering my pipeline run as well.

can you please give me solution or way around for this problem.

Thanks and regards, nikhil

diegopescoalcalde commented 3 years ago

I'm also having that.

P-S-1987 commented 3 years ago

Hi,

I have the same issue. Did you guys figure out what to do?

Thanks

Laxminarayen commented 3 years ago

I am facing the same issue as well! Any fixes??

rth commented 3 years ago

Thanks for the report. Yes, it's a known (and recurrent) issue and we need to host data files in a more reliable location. This was recently done by mirroring those files in https://github.com/symerio/postal-codes-data and serving them via https://symerio.github.io/postal-codes-data/ .

Next step would be to make changes in the code to fallback to this location when the original one is not working (https://github.com/symerio/pgeocode/issues/41). Additional complexity is that in this second location files are directly served in in the .txt format without being included in a .zip so the load function would be slightly different.

Overall I'll try to look into this in the near future.