This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
thinkgeo_cloud_geocoding [2019/07/17 06:12] kevinwan [Geocode Addresses (Batch Request)] |
thinkgeo_cloud_geocoding [2019/09/23 16:06] (current) brianr |
||
---|---|---|---|
Line 60: | Line 60: | ||
Each item in the batch can locally override a parameter specified on the request URL. | Each item in the batch can locally override a parameter specified on the request URL. | ||
+ | |||
+ | //**Example Request**// | ||
+ | |||
+ | Here is an example geocode batch request containing three items. For each item, we want verbose results and a maximum of one result, so we can place these options in the request URL so they apply to all items in the batch. Notice that we can search for place names ("Cedar Point", a theme park in Ohio) as well as addresses. | ||
+ | |||
+ | <code html> | ||
+ | HTTP POST | ||
+ | https://cloud.thinkgeo.com/api/v1/location/geocode/multi?maxResults=1&verboseResults=true | ||
+ | </code> | ||
+ | |||
+ | <code javascript> | ||
+ | [ | ||
+ | { | ||
+ | "searchText": "200 Epcot Center Drive, Bay Lake, FL" | ||
+ | }, | ||
+ | { | ||
+ | "searchText": "1313 South Harbor Blvd, Anaheim, CA" | ||
+ | }, | ||
+ | { | ||
+ | "searchText": "Cedar Point" | ||
+ | } | ||
+ | ] | ||
+ | </code> | ||
//**URL Parameters**// | //**URL Parameters**// | ||
Line 71: | Line 94: | ||
* <html><span class="api-parameter"><span class="api-parameter-name">srid:</span> <em>Optional.</em> The SRID (coordinate system ID) in which to express the result. Mutually exclusive from the Proj4String parameter.</span></html> | * <html><span class="api-parameter"><span class="api-parameter-name">srid:</span> <em>Optional.</em> The SRID (coordinate system ID) in which to express the result. Mutually exclusive from the Proj4String parameter.</span></html> | ||
* <html><span class="api-parameter"><span class="api-parameter-name">proj4String:</span> <em>Optional.</em> The Proj4 projection string (coordinate system) in which to express the result. Mutually exclusive from the Srid parameter. Defaults to "+proj=longlat +datum=WGS84 +no_defs".</span></html> | * <html><span class="api-parameter"><span class="api-parameter-name">proj4String:</span> <em>Optional.</em> The Proj4 projection string (coordinate system) in which to express the result. Mutually exclusive from the Srid parameter. Defaults to "+proj=longlat +datum=WGS84 +no_defs".</span></html> | ||
+ | |||
+ | |||
Visit [[https://cloud.thinkgeo.com/help/#/Geocoding/GeocodeAddressesBatchV1|GeocodeAddressesBatch]] and click "Try It Out" to explore this API online. | Visit [[https://cloud.thinkgeo.com/help/#/Geocoding/GeocodeAddressesBatchV1|GeocodeAddressesBatch]] and click "Try It Out" to explore this API online. |