-
Notifications
You must be signed in to change notification settings - Fork 44
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
Exception: Error. Google Maps API return status: ZERO_RESULTS for geocode_address #4
Comments
Test with large radius (---begin---) Iteration 0 Failed, so it is some other issue |
Debug output appended CALL python CODE (in get_isochrone)
OUTPUT
File "isocronut.py", line 399, in get_isochrone |
Exception can be caught with s.th. like this, but should be failsafe for i=0. Better idea? I don't understand why there have to be these addresses anyway ;) I think they are also the primary reason for the outliers - geocoding Unknown Road, can lead to surprising results of course...
|
I think the proper way to handle this is: a) initialize iso with None:
b) don't bother resetting iso[i] for i that fails:
c) then after the i for loop, throw out all angles that failed, and fail ultimately if none of them work at all:
Thoughts? |
Proper but still very messy because translating a known location to "unknown road, cleveland ohio" and back introduced terrible noise outside of city areas and quite some outliers. Working on the mapbox solution instead, it's much nicer anyway. |
Yeah, my other thought was: as a post-process, determine outlying radii using some outlier detection method and through those out. |
Every few hundred location calls I get this error.
File "isocronut.py", line 383, in get_isochrone
for i in range(number_of_angles):
File "isocronut.py", line 222, in geocode_address
if not d['status'] == 'OK':
Exception: Error. Google Maps API return status: ZERO_RESULTS
See related issues :
http://stackoverflow.com/questions/20664723/google-maps-api-v3-returning-zero-results-but-maps-google-com-showing-fine
I think one needs to provide a radius iteration to find a place with a name nearby sometimes. See e.g.
http://stackoverflow.com/questions/11754114/why-is-google-place-api-giving-me-zero-results
The text was updated successfully, but these errors were encountered: