geocoder icon indicating copy to clipboard operation
geocoder copied to clipboard

how to get the key for geocoder.arcgis

Open MarkRoy8888 opened this issue 3 years ago • 2 comments

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?

MarkRoy8888 avatar Jul 14 '21 06:07 MarkRoy8888

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!!

paulstey avatar Aug 06 '22 15:08 paulstey

@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: https://github.com/DenisCarriere/geocoder/blob/39b9999ec70e61da9fa52fe9fe82a261ad70fa8b/geocoder/arcgis.py#L68 is providing the response and the request does not have to include a unique key because None set here: https://github.com/DenisCarriere/geocoder/blob/39b9999ec70e61da9fa52fe9fe82a261ad70fa8b/geocoder/base.py#L380, based on https://github.com/DenisCarriere/geocoder/blob/39b9999ec70e61da9fa52fe9fe82a261ad70fa8b/geocoder/base.py#L329, 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)

capell-ben avatar Dec 29 '23 00:12 capell-ben