Fri, 03/05/2021 - 09:41
#1
Proper format for GeoCode batch POST body?
The documentation for the format of the request body in the GeoCode batch POST request is unclear. The example shows objects containing a city and state.How would I specify a batch of multiple addresses? I keep getting the response "no 'json' parameter found" and status code 400.
I have tried using the following formats for the request body:
{"locations":["address1","address2"]}
"locations":["address1","address2"]
{"locations":[{address:"address1"},{"address":"address2"}]}
None of these work.
Mon, 03/08/2021 - 12:44
The Try it Now example may
The Try it Now example may have what you're looking for. Here is an example request: http://www.mapquestapi.com/geocoding/v1/batch?key=KEY&json={"locations":[{"street":"Denver, CO"},{"street":"1555 Blake St, Denver, CO 80202"},{"street":"Boulder"}],"options":{"thumbMaps":false,"maxResults":"1"}}