跳转至主要内容
CloudStudio

使用参数获取地理围栏列表

此 API 可以使用参数获取地理围栏列表。

请求

GET /api/v2/geozones?clientID={clientID}&maxCount={maxCount} HTTP/1.1
Host: gear.cloud.studio
Authorization: Bearer {accessToken}

参数

名称说明
accessToken具有地理围栏信息读取权限的访问令牌。更多信息请参见此页面。访问令牌也可以通过查询字符串中的 "accessToken" 参数发送。
clientID要获取其地理围栏列表的客户标识符。
maxCount可选参数,表示结果中包含的最大地理围栏数。

响应

响应包含匹配的地理围栏列表,如下例所示:

[
	{
		"GeozoneID":35,
		"ClientID":79,
		"Description":"Hokkaido",
		"ExternalCode":"3424",
		"Polygon":{
			"PolygonID":35,
			"Points":[
				[
					43.93935551,
					142.57453478
				],
				[
					43.49469073,
					143.60724962
				],
				[
					43.06278289,
					143.49738634
				],
				[
					42.9020392,
					142.92609728
				],
				[
					42.96638711,
					142.6624254
				],
				[
					42.96638711,
					142.17902696
				],
				[
					42.9020392,
					141.80549181
				],
				[
					42.88594172,
					141.49787462
				],
				[
					43.06278289,
					141.34406603
				],
				[
					43.19107519,
					141.6077379
				],
				[
					43.36703768,
					141.93732775
				],
				[
					43.669774,
					141.82746446
				],
				[
					43.82849869,
					142.02521837
				],
				[
					43.90770318,
					142.37678087
				]
			],
			"BorderColor":0,
			"BorderWidth":3,
			"BorderOpacity":100.0,
			"FillColor":0,
			"FillOpacity":50.0
		},
		"Vehicles":[
			{
				"VehicleID":133,
				"Description":"Asset 70",
				"LicensePlate":"XD1320070"
			},
			{
				"VehicleID":134,
				"Description":"Asset 71",
				"LicensePlate":"XD1320071"
			},
			{
				"VehicleID":135,
				"Description":"Asset 72",
				"LicensePlate":"XD1320072"
			},
			{
				"VehicleID":136,
				"Description":"Asset 73",
				"LicensePlate":"XD1320073"
			},
			{
				"VehicleID":138,
				"Description":"Asset 75",
				"LicensePlate":"XD1320075"
			},
			{
				"VehicleID":139,
				"Description":"Asset 76",
				"LicensePlate":"XD1320076"
			},
			{
				"VehicleID":140,
				"Description":"Asset 77",
				"LicensePlate":"XD1320077"
			},
			{
				"VehicleID":141,
				"Description":"Asset 78",
				"LicensePlate":"XD1320078"
			},
			{
				"VehicleID":142,
				"Description":"Asset 79",
				"LicensePlate":"XD1320079"
			}
		],
		"SequenceNumber":74017203,
		"Enabled":true
	},
	{
		"GeozoneID":36,
		"ClientID":79,
		"Description":"1",
		"ExternalCode":null,
		"Polygon":{
			"PolygonID":36,
			"Points":[
				[
					0.870633,
					177.7532959
				],
				[
					0.62895465,
					178.34655762
				],
				[
					1.34295563,
					177.84118652
				]
			],
			"BorderColor":0,
			"BorderWidth":3,
			"BorderOpacity":100.0,
			"FillColor":0,
			"FillOpacity":50.0
		},
		"Vehicles":[

		],
		"SequenceNumber":74017204,
		"Enabled":true
	},
	{
		"GeozoneID":37,
		"ClientID":79,
		"Description":"2",
		"ExternalCode":null,
		"Polygon":{
			"PolygonID":37,
			"Points":[
				[
					-1.26057944,
					178.3026123
				],
				[
					-0.35979988,
					179.63195801
				],
				[
					-0.62346182,
					-179.34631348
				]
			],
			"BorderColor":0,
			"BorderWidth":3,
			"BorderOpacity":100.0,
			"FillColor":0,
			"FillOpacity":50.0
		},
		"Vehicles":[

		],
		"SequenceNumber":74017205,
		"Enabled":true
	}
]

最后更新于

本页内容