Select to view content in your preferred language

LocatorTask.GeoCodeAsync() address formatting

527
0
07-27-2020 12:47 PM
JonathanRuland
Occasional Contributor

I have a question about LocatorTask.GeoCodeAsync(). Using StreetMap Premium files, I can pass in an address like this and it returns results as I would expect:

255 W Alameda St, Tucson, AZ 85701

However I would also expect to be able to pass in an address like the following and get a list of results as well, but instead I get 0 results:

255 W Alameda St

So my question has 2 parts:

  1. Is it possible to pass in just a street address without a city, state, etc. and have the locator work?
  2. If so, can this be done in the code or will we need to edit our locator files to take addresses formatted like this?

Thanks in advance.

0 Kudos
0 Replies