Skip to content
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

how to get the key for geocoder.arcgis #441

Open
MarkRoy8888 opened this issue Jul 14, 2021 · 2 comments
Open

how to get the key for geocoder.arcgis #441

MarkRoy8888 opened this issue Jul 14, 2021 · 2 comments

Comments

@MarkRoy8888
Copy link

I use geocoder package in our company.

import geocoder
g = geocoder.arcgis(address)
g.address

I want to make sure it works, so I need to pay for this service.
I don't how to get the key and key-in the key?

@paulstey
Copy link

paulstey commented Aug 6, 2022

I would be curious about this, too. It seems that unlike some of the other provider modules, the geocoding.arcgis module does not allow the user to supply and API key.

Is that correct, @DenisCarriere??

And as an aside, thank you so much for this excellent Python package!!

@capell-ben
Copy link

capell-ben commented Dec 29, 2023

@DenisCarriere I am also curious what credentials geocoder.arcgis() uses to access the results from the ArcGIS World Geocoding Service? I haven't provided an API Key, but i still get a result.

I echo the thanks of @paulstey for this package!

**update it appears that the url here:

_URL = 'https://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer/find'
is providing the response and the request does not have to include a unique key because None set here:
provider_key = self._get_api_key(kwargs.pop('key', ''))
, based on
_KEY = None
, if the user doesn't overwrite with a unique one.
This seems like a backdoor to the service that may have some of usage limit. (just a thought)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants