DenisCarriere / geocoder

:earth_asia: Python Geocoder
http://geocoder.readthedocs.org
MIT License
1.62k stars 286 forks source link

Mapbox geocoding failures #394

Open diehl opened 5 years ago

diehl commented 5 years ago

I'm stumbling onto some address examples that are failing to geocode properly with Mapbox due to particular characters present in the addresses. Or so I believe that's the issue. Here are the 404 messages I'm seeing returned. Looks like the presence of '#' or '/' in the address causes problems.

Status code 404 from https://api.mapbox.com/geocoding/v5/mapbox.places/8584B E. Washington Street #111, Chagrin Falls, Ohio 44023.json: ERROR - 404 Client Error: Not Found for url: https://api.mapbox.com/geocoding/v5/mapbox.places/8584B%20E.%20Washington%20Street%20?access_token=pk.eyJ1IjoiZGllaGwiLCJhIjoiX2ZkNHB1YyJ9.xgEQhC42rZVcLY2J0fmrgA#111,%20Chagrin%20Falls,%20Ohio%2044023.json

Status code 404 from https://api.mapbox.com/geocoding/v5/mapbox.places/79 W 4500 S, Suite #23, Salt Lake City, Utah 84107.json: ERROR - 404 Client Error: Not Found for url: https://api.mapbox.com/geocoding/v5/mapbox.places/79%20W%204500%20S,%20Suite%20?access_token=pk.eyJ1IjoiZGllaGwiLCJhIjoiX2ZkNHB1YyJ9.xgEQhC42rZVcLY2J0fmrgA#23,%20Salt%20Lake%20City,%20Utah%2084107.json

Status code 404 from https://api.mapbox.com/geocoding/v5/mapbox.places/15275 S Avenue A 1/2, Somerton, Arizona 85350.json: ERROR - 404 Client Error: Not Found for url: https://api.mapbox.com/geocoding/v5/mapbox.places/15275%20S%20Avenue%20A%201/2,%20Somerton,%20Arizona%2085350.json?access_token=pk.eyJ1IjoiZGllaGwiLCJhIjoiX2ZkNHB1YyJ9.xgEQhC42rZVcLY2J0fmrgA

Status code 404 from https://api.mapbox.com/geocoding/v5/mapbox.places/4741 #B East Harbor RD, Freeland, Washington 98249.json: ERROR - 404 Client Error: Not Found for url: https://api.mapbox.com/geocoding/v5/mapbox.places/4741%20?access_token=pk.eyJ1IjoiZGllaGwiLCJhIjoiX2ZkNHB1YyJ9.xgEQhC42rZVcLY2J0fmrgA#B%20East%20Harbor%20RD,%20Freeland,%20Washington%2098249.json

Status code 404 from https://api.mapbox.com/geocoding/v5/mapbox.places/1235 N Kings Rd, #205, West Hollywood, California 90069.json: ERROR - 404 Client Error: Not Found for url: https://api.mapbox.com/geocoding/v5/mapbox.places/1235%20N%20Kings%20Rd,%20?access_token=pk.eyJ1IjoiZGllaGwiLCJhIjoiX2ZkNHB1YyJ9.xgEQhC42rZVcLY2J0fmrgA#205,%20West%20Hollywood,%20California%2090069.json

Status code 404 from https://api.mapbox.com/geocoding/v5/mapbox.places/Quin Rd. 1 1/8 miles S. Garces Hwy 1/8 mile, Delano, California 93215.json: ERROR - 404 Client Error: Not Found for url: https://api.mapbox.com/geocoding/v5/mapbox.places/Quin%20Rd.%201%201/8%20miles%20S.%20Garces%20Hwy%201/8%20mile,%20Delano,%20California%2093215.json?access_token=pk.eyJ1IjoiZGllaGwiLCJhIjoiX2ZkNHB1YyJ9.xgEQhC42rZVcLY2J0fmrgA

Status code 404 from https://api.mapbox.com/geocoding/v5/mapbox.places/668 Industrial Park Dr. #4058, Manteca, California 95337.json: ERROR - 404 Client Error: Not Found for url: https://api.mapbox.com/geocoding/v5/mapbox.places/668%20Industrial%20Park%20Dr.%20?access_token=pk.eyJ1IjoiZGllaGwiLCJhIjoiX2ZkNHB1YyJ9.xgEQhC42rZVcLY2J0fmrgA#4058,%20Manteca,%20California%2095337.json