Problems with the Rest World Geocoding Service

550
1
11-13-2017 01:50 PM
Jean-FrançoisDolbec
New Contributor II

We are having a difficult time trying to explain certain score obtain when requesting the Rest World Geocoding Service. Anyone can help us out?

We are looking for the "rue Notre-Dame" [in the province of Quebec] and when launching this request:

https://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer/findAddressCandidates?SingleLine...

We are obtaining :

"candidates": [   {    "address": "Rue du passage, Grand-Mère, Shawinigan, Québec, G9T",    "location": {     "x": -72.687233532632504,     "y": 46.604699724003538    },    "score": 89.400000000000006,    "attributes": {         },    "extent": {     "xmin": -72.688233532632509,     "ymin": 46.60369972400354,     "xmax": -72.6862335326325,     "ymax": 46.605699724003536    }   },   {    "address": "Rue Rd, Fort McMurray, Wood Buffalo, Alberta, T9H",    "location": {     "x": -111.15360547309186,     "y": 56.660170619287101    },    "score": 93.030000000000001,    "attributes": {         },    "extent": {     "xmin": -111.15460547309186,     "ymin": 56.659170619287103,     "xmax": -111.15260547309185,     "ymax": 56.661170619287098    }   },

...

Even though there are many Notre-Dame streets in Quebec, the first candidate as nothing to do with "Notre-Da" and the score is 89.4!

Do you see something in our request?

How should we use the distance and the location parameters?

Any clue as why we obtain this score?

Cheers!

J-F

0 Kudos
1 Reply
BradNiemand
Esri Regular Contributor

It looks like you are trying to enter a partial street name and expect it to return results based on that.  Is that correct?  If so, you should really be using the "suggest" operation instead to get suggestion results and then use the suggest results to send to the findAddressCandidates operation.

Ex.

http://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer/suggest?text=rue+Notre-Da&country...

Use the text and magicKey to send to the findAddressCandidates operation.  I am choosing the first one in this example:

http://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer/findAddressCandidates?CountryCode...

The findAddressCandidates operation doesn't search for partial inputs.  It does handle aliases and typos but not partial input strings.

Brad

0 Kudos