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
When a findAddressCandidates request is made without specifying magicKey, the response includes a Loc_name attribute for candidates:
curl -X GET \
'https://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer/findAddressCandidates?f=json&outFields=Loc_name%2CScore%2CMatch_addr%2CAddr_type%2CAddNum%2CStPreDir%2CStPreType%2CStName%2CStType%2CStDir%2CCity%2CSubregion%2CRegionAbbr%2CPostal%2CCountry%2CDisplayX%2CDisplayY&maxLocations=20&singleLine=New+York%2C+USA&sourceCountry=US'
However, if the magicKey is included, the Loc_name is no longer returned:
curl -X GET \
'https://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer/findAddressCandidates?f=json&outFields=Loc_name%2CScore%2CMatch_addr%2CAddr_type%2CAddNum%2CStPreDir%2CStPreType%2CStName%2CStType%2CStDir%2CCity%2CSubregion%2CRegionAbbr%2CPostal%2CCountry%2CDisplayX%2CDisplayY&maxLocations=20&singleLine=New+York%2C+USA&sourceCountry=US&magicKey=dHA9MCN0dj02NTc3YTY2NiNsb2M9OTY5Mzg4MSNsbmc9NTUjcGw9NzAyMzczMiNsYnM9MTQ6MzQ5Mzg0MjI7MDo1MTAxMjg1OCNsbj1Xb3JsZA'
Location search was broken because of azavea/python-omgeo#67.
By upgrading to the latest version of omgeo that includes azavea/python-omgeo#68,
this issue is fixed.
PyPI release of omgeo is blocked for now azavea/python-omgeo#70,
so we use the tag directly from GitHub instead.
When a
findAddressCandidates
request is made without specifyingmagicKey
, the response includes aLoc_name
attribute for candidates:curl -X GET \ 'https://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer/findAddressCandidates?f=json&outFields=Loc_name%2CScore%2CMatch_addr%2CAddr_type%2CAddNum%2CStPreDir%2CStPreType%2CStName%2CStType%2CStDir%2CCity%2CSubregion%2CRegionAbbr%2CPostal%2CCountry%2CDisplayX%2CDisplayY&maxLocations=20&singleLine=New+York%2C+USA&sourceCountry=US'
However, if the
magicKey
is included, theLoc_name
is no longer returned:curl -X GET \ 'https://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer/findAddressCandidates?f=json&outFields=Loc_name%2CScore%2CMatch_addr%2CAddr_type%2CAddNum%2CStPreDir%2CStPreType%2CStName%2CStType%2CStDir%2CCity%2CSubregion%2CRegionAbbr%2CPostal%2CCountry%2CDisplayX%2CDisplayY&maxLocations=20&singleLine=New+York%2C+USA&sourceCountry=US&magicKey=dHA9MCN0dj02NTc3YTY2NiNsb2M9OTY5Mzg4MSNsbmc9NTUjcGw9NzAyMzczMiNsYnM9MTQ6MzQ5Mzg0MjI7MDo1MTAxMjg1OCNsbj1Xb3JsZA'
Furthermore, the returned
Addr_type
isLocality
, which does not pass the default postprocessors:python-omgeo/omgeo/services/esri.py
Lines 56 to 61 in 329beed
Make it so that results after specifying
magicKey
are tolerated.NOTE: ESRI REST endpoint documentation does not have a CHANGELOG, but does say that
Loc_name
is an internal field that clients should not use.The text was updated successfully, but these errors were encountered: