There are two optional parameters for the suggest API that we are trying to use. We set the “location” parameter to the user’s location so that nearby addresses get boosted in the suggestions. We also tried to set the “searchExtent” parameter to restrict the results to a bounding box, in our case a rectangle that roughly encompasses the United States.
Example:
This returns addresses with those suggestions closer to the user's location boosted, as expected.
However, when we try to restrict the results by adding a searchExtent parameter,
However, once we set the “searchExtent”, the “location” parameter seems to be ignored and we end up with suggestions centered around Kansas, rather than the user's location set by the "location" parameter. Are we misinterpreting something here? Or are these two parameters mutually exclusive? Thanks!
Solved! Go to Solution.
Yes, Anthony Picciano, the release was delayed a couple of days. Target is to release tomorrow.
Thanks for the write-up, Anthony.
This may be a bug. We're looking into it and will post something when we know more.
Nick.
Hi Nick, any update on this bug?
Hi Anthony. Thanks for following up.
I found out today that the bug will be fixed at the next release of the Geocoder Service, which is planned for July.
Cheers,
Nick.
Hi Nick,
I am experiencing perhaps a related issue with the 'Suggest' endpoint. It is not honoring the searchExtent that I pass in. When I pass in an Extent object that roughly defines the Portland OR area, I get results returned from quite far North in WA as well. Could that issue be tied to the bug mentioned above?
Thanks,
Loren
Hi Loren Mueller. Apologies that I missed your post.
It could well be. I suggest that you try again after this release goes live.
Cheers,
Nick.
Was this supposed to be in the July 10 Update? It is still not working. Is there any updated information regarding a fix for this?
Yes, Anthony Picciano, the release was delayed a couple of days. Target is to release tomorrow.
FYI, this was fixed in last night's update. Loren Mueller, I suggest you take another look and see if your issue has been resolved. From your description, I think it should be.