Collections

4 posts / 0 new
Last post
asherber
Collections

If a radius search has an ambiguous origin, and ambiguities is not set to Ignore, the response from Mapquest consists of a Collections element, containing the various possibilities for the origin, rather than the search results. 

Is there documentation somewhere of this Collections element? In JSON, it appears to be an array with one element, which is also an array (of locations). Does the outer array ever have more than one element, and if so, what is it? Or can we always expect an array of array of locations?


MQBrianCoakley
The array returned for the
The array returned for the ambiguous search origin is a geocode result. The result is described here in the geocode api guide.

asherber
Thanks, I can see that they

Thanks, I can see that they are geocode results.

But what about the array composition? Collections is an array of array of geocode results. Obviously there can be multiple geocode results inside the inner array, but will the outer array ever contain more than one inner array?


MQBrianCoakley
No. Since there is a single
No. Since there is a single origin for a search, there will only be one geocode address origin returned.