[Geocoding] Multiple places?

Sarah Hoffmann lonvia at denofr.de
Wed Aug 1 20:50:48 UTC 2018


Hi Doug,

On Tue, Jul 31, 2018 at 11:18:20AM -0500, Doug Hall wrote:
> The wiki is a little vague. I see that when using xml, there can be
> multiple "place" elements returned in the response. In JSON, the "normal"
> way of returning this kind of data would be with a "places" array. Is that
> right, or does it match the XML output?

I assume that you are refering to the search endpoint. In JSON, this
always returns an array of objects, with each of these objects being
one place (the 'place' element in XML). In contrast, the reverse
endpoint only returns one JSON object because there will never be
more than one result.

Kind regards

Sarah



More information about the Geocoding mailing list