-
-
Notifications
You must be signed in to change notification settings - Fork 84
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
nominating
warning
#44
Comments
whoah - weird, I don't think we're setting anything like this, just using the defaults: https://github.com/darribas/contextily/blob/3fba3a3cc099dc5cc6782c40b7e270b916478d6e/contextily/place.py#L60 |
Right, I think reading through it they might have changed their approach. Should we encourage (or at least give the option to) the user to pass their own |
hmmm - that's a good question, I'd be +1 on letting users do this. Does this mean geopy will expect people to have their own user identity before doing geotagging?! |
This one is similar to #75. We should probably extend the policy adopted over there to geopy as well. |
Yes, and for the tests we can maybe specify a contextily-testing user agent or something like that. |
I read your sentence wrongly. In this case, I am not sure if we should copy the same logic as we did for the tile providers. The terms of services can be much more restricted here, I think (actually, I didn't look at those of the tile providers, but I know for geocoding services they are somewhat limited in rate etc). See some discussion in geopandas as well (geopandas/geopandas#907, geopandas/geopandas#975), where in the end we switched to geocodefarm as the default but with a rate limit performed by geopandas, and a pointer to the docs how to set another geocoding service / user agent. |
Could we have a similar approach here? |
A good start is probably switching to geocodefarm as default. Then the question is if we want the user be able to specify the geocoding service (but in this case, you won't run into rate limits that quickly, since we are also making plots of it, not en masse geocoding a full dataframe as in the case of geopandas. So it is certainly less pressing as in geopandas I think) |
Yeah, maybe a switch to geocodefarm would be good. I think, if possible, allowing the user to pass arguments on |
Hi, I'd just like to mention that I hit the same issue by running
from the documentation.
Does it mean that |
It looks like the geocoder is hard-coded: https://github.com/geopandas/contextily/blob/master/contextily/place.py#L96 We should definitely let the user pick the geocoder (for example, set an argument like However, for the problem @APaganini raises, note that, following the error's message, you can change the user before calling import geopy
geopy.geocoders.options.default_user_agent = "test_user"
nightlights = cx.providers.NASAGIBS.ViirsEarthAtNight2012
ireland = cx.Place("Ireland", source=nightlights) That worked for me. Cleverer suggestions in the form of PRs also very welcome! |
Fixed in #164 |
From the test suite:
Maybe for @choldgraf to have a look?
The text was updated successfully, but these errors were encountered: