User Tools

Site Tools


thinkgeo_cloud_geocoding

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
thinkgeo_cloud_geocoding [2019/09/23 16:02]
brianr Added example geocode batch request.
thinkgeo_cloud_geocoding [2019/09/23 16:06] (current)
brianr
Line 58: Line 58:
 ] ]
 </​code>​ </​code>​
 +
 +Each item in the batch can locally override a parameter specified on the request URL.
  
 //**Example Request**// //**Example Request**//
  
-Here is an example geocode batch request containing three items. ​It assumes that we want verbose resultsand a maximum of one result ​per item.  Notice that we can search for place names ("Six Flags Over Texas") as well as addresses.+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>​ <code javascript>​
 [ [
   {   {
-    "​searchText":​ "200 Epcot Center Drive, Bay Lake, FL"+    "​searchText":​ "200 Epcot Center Drive, Bay Lake, FL"
-    "​maxResults":​ 1, +
-    "​verboseResults":​ true+
   },   },
   {   {
-    "​searchText":​ "1313 South Harbor Blvd, Anaheim, CA"+    "​searchText":​ "1313 South Harbor Blvd, Anaheim, CA"
-    "​maxResults":​ 1, +
-    "​verboseResults":​ true+
   },   },
   {   {
-    "​searchText":​ "Six Flags Over Texas"+    "​searchText":​ "Cedar Point"
-    "​maxResults":​ 1, +
-    "​verboseResults":​ true+
   }   }
 ] ]
 </​code>​ </​code>​
- 
-Each item in the batch can locally override a parameter specified on the request URL. 
  
 //**URL Parameters**//​ //**URL Parameters**//​
thinkgeo_cloud_geocoding.1569254540.txt.gz · Last modified: 2019/09/23 16:02 by brianr