You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The mapbox module does a self.url.format(location) to generate the base URL instead of properly encoding the URL. This results in apartment addresses being split at the '#' symbol for the apartment number, and the access token being injected in the middle of the address instead of after the '.json' extension.
Example:
g = geocoder.mapbox('1300 Foulk Rd, #8, Wilmington, DE 19803')
Status code 404 from https://api.mapbox.com/geocoding/v5/mapbox.places/1300 Foulk Rd, #8, Wilmington, DE 19803.json: ERROR - 404 Client Error: Not Found for url:
https://api.mapbox.com/geocoding/v5/mapbox.places/1300%20Foulk%20Rd,%20?access_token=<token>#8,%20Wilmington,%20DE%2019803.json
Using an alternate module such as google works fine, but that may not be an option for some projects.
python - 3.9.1
geocoder - 1.38.1
The text was updated successfully, but these errors were encountered:
jas32096
added a commit
to jas32096/geocoder
that referenced
this issue
Aug 17, 2022
The mapbox module does a
self.url.format(location)
to generate the base URL instead of properly encoding the URL. This results in apartment addresses being split at the '#' symbol for the apartment number, and the access token being injected in the middle of the address instead of after the '.json' extension.Example:
Using an alternate module such as google works fine, but that may not be an option for some projects.
python - 3.9.1
geocoder - 1.38.1
The text was updated successfully, but these errors were encountered: