This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
thinkgeo_cloud_maps_query [2019/06/25 06:13] kevinwan [Get Features Within Distance] |
thinkgeo_cloud_maps_query [2019/06/25 06:47] (current) kevinwan [Get Attributes of Layer] |
||
|---|---|---|---|
| Line 163: | Line 163: | ||
| HTTP POST | HTTP POST | ||
| https://cloud.thinkgeo.com/api/v1/maps/query/custom | https://cloud.thinkgeo.com/api/v1/maps/query/custom | ||
| + | </code> | ||
| + | |||
| + | //**POST Body (Content-Type: application/json)**// | ||
| + | <code javascript> | ||
| + | { | ||
| + | "queryLayer": "string", //The layer to query. | ||
| + | "queryType": "string", //The type of query to perform. Value can be one of: "Within", "Containing", "Intersecting", "Overlapping", "Touching", "Nearest", "Within-Distance". | ||
| + | "wkt": "string", //The well-known text of the target geometry. | ||
| + | "srid": int, //Optional. The SRID of the input and output feature's coordinate system. Defaults to 4326. | ||
| + | "proj4String": "string", //Optional. The Proj4 string of the input and output feature's coordinate system. | ||
| + | "distance": double, //Optional. The distance within which to find features. Defaults to 200. | ||
| + | "distanceUnit": "string", //Optional. The unit of measure in which the distance is expressed. Defaults to Meter. | ||
| + | "searchRadius": double, //Optional. The radius of the search area around the target geometry. If not specified, it's assumed that there is no limit. | ||
| + | "searchRadiusUnit": "string", //Optional. The unit of measure in which the searchRadius is expressed. Defaults to Meter. | ||
| + | "maxResults": int, //Optional. The maximum number of features to return. Defaults to 100. | ||
| + | "returnFeatureAttributes": bool, //Optional. Specify whether the feature attribute names and values will be returned in the response. Defaults to true. | ||
| + | "featureAttributesToReturn": [ | ||
| + | "string" | ||
| + | ] //Optional. If returnFeatureAttributes is true, this specifies which a specific subset of attributes to be returned. Formatted as a comma-delimited list of attribute names that should be returned with each feature in the response. | ||
| + | } | ||
| </code> | </code> | ||
| Line 186: | Line 206: | ||
| https://cloud.thinkgeo.com/api/v1/maps/query/{queryLayer}/attributes | https://cloud.thinkgeo.com/api/v1/maps/query/{queryLayer}/attributes | ||
| </code> | </code> | ||
| + | |||
| + | //**URL Parameters**// | ||
| + | * <html><span class="api-parameter"><span class="api-parameter-name">queryLayer</span>: The query layer.</span></html> | ||
| Visit [[https://cloud.thinkgeo.com/help/index.html#/WorldMapsQuery/Get%20World%20Maps%20Query%20Attributes%20Of%20LayerV1|GetAttributesOfLayer]] and click "Try It Out" to explore this API online. | Visit [[https://cloud.thinkgeo.com/help/index.html#/WorldMapsQuery/Get%20World%20Maps%20Query%20Attributes%20Of%20LayerV1|GetAttributesOfLayer]] and click "Try It Out" to explore this API online. | ||