Commit 805e0383 by Adi Amir

support getTrafficLanes from cisco

parent 911b4d87
{
"Find": {
"Status": "Success",
"Result": [
{
"ParkingSpot": {
"sid": "Simulated__DEVNET002__pspotz001n001",
"providerDetails": {
"provider": "simulated",
"providerId": "kvt7gvsfwkqoa2wikma5btvdz3lnqkot"
},
"opParams": {
"zoneType": "ValidParking",
"maxDurationMinutes": 295
},
"ancestor": [
{
"entityId": "Simulated__DEVNET002__spacez001",
"entityType": "ParkingSpace"
}
],
"hierId": "parking_hierarchy_sid",
"thirdPartyId": "pspotz001n001",
"parent": {
"entityType": "ParkingSpace",
"entityId": "Simulated__DEVNET002__spacez001"
},
"state": {
"reliability": 100,
"prevExpectedRevenue": 0,
"occupied": false
},
"sensorCustomerId": "SDPCustomer_500050",
"parkingSpaceId": "Simulated__DEVNET002__spacez001",
"lastUpdated": "2016-11-25T09:20:00.025Z",
"geocoordinates": {
"longitude": -121.9279211,
"latitude": 37.40634865
},
"label": "PT001_001"
}
},
{
"ParkingSpot": {
"sid": "Simulated__DEVNET002__pspotz001n002",
"providerDetails": {
"provider": "simulated",
"providerId": "kvt7gvsfwkqoa2wikma5btvdz3lnqkot"
},
"opParams": {
"zoneType": "ValidParking",
"maxDurationMinutes": 281
},
"ancestor": [
{
"entityId": "Simulated__DEVNET002__spacez001",
"entityType": "ParkingSpace"
}
],
"hierId": "parking_hierarchy_sid",
"thirdPartyId": "pspotz001n002",
"parent": {
"entityType": "ParkingSpace",
"entityId": "Simulated__DEVNET002__spacez001"
},
"state": {
"reliability": 100,
"occupied": false
},
"sensorCustomerId": "SDPCustomer_500050",
"parkingSpaceId": "Simulated__DEVNET002__spacez001",
"lastUpdated": "2016-10-31T10:11:24.476Z",
"geocoordinates": {
"longitude": -121.9301719,
"latitude": 37.40870162
},
"label": "PT001_002"
}
},
{
"ParkingSpot": {
"sid": "Simulated__DEVNET002__pspotz001n003",
"providerDetails": {
"provider": "simulated",
"providerId": "kvt7gvsfwkqoa2wikma5btvdz3lnqkot"
},
"opParams": {
"zoneType": "ValidParking",
"maxDurationMinutes": 298
},
"ancestor": [
{
"entityId": "Simulated__DEVNET002__spacez001",
"entityType": "ParkingSpace"
}
],
"hierId": "parking_hierarchy_sid",
"thirdPartyId": "pspotz001n003",
"parent": {
"entityType": "ParkingSpace",
"entityId": "Simulated__DEVNET002__spacez001"
},
"state": {
"reliability": 100,
"occupied": false
},
"sensorCustomerId": "SDPCustomer_500050",
"parkingSpaceId": "Simulated__DEVNET002__spacez001",
"lastUpdated": "2016-10-31T10:11:24.476Z",
"geocoordinates": {
"longitude": -121.926456,
"latitude": 37.40738914
},
"label": "PT001_003"
}
},
{
"ParkingSpot": {
"sid": "Simulated__DEVNET002__pspotz001n004",
"providerDetails": {
"provider": "simulated",
"providerId": "kvt7gvsfwkqoa2wikma5btvdz3lnqkot"
},
"opParams": {
"zoneType": "ValidParking",
"maxDurationMinutes": 259
},
"ancestor": [
{
"entityId": "Simulated__DEVNET002__spacez001",
"entityType": "ParkingSpace"
}
],
"hierId": "parking_hierarchy_sid",
"thirdPartyId": "pspotz001n004",
"parent": {
"entityType": "ParkingSpace",
"entityId": "Simulated__DEVNET002__spacez001"
},
"state": {
"reliability": 100,
"occupied": false
},
"sensorCustomerId": "SDPCustomer_500050",
"parkingSpaceId": "Simulated__DEVNET002__spacez001",
"lastUpdated": "2016-10-31T10:11:24.476Z",
"geocoordinates": {
"longitude": -121.9275247,
"latitude": 37.40854945
},
"label": "PT001_004"
}
},
{
"ParkingSpot": {
"sid": "Simulated__DEVNET002__pspotz001n005",
"providerDetails": {
"provider": "simulated",
"providerId": "kvt7gvsfwkqoa2wikma5btvdz3lnqkot"
},
"opParams": {
"zoneType": "ValidParking",
"maxDurationMinutes": 266
},
"ancestor": [
{
"entityId": "Simulated__DEVNET002__spacez001",
"entityType": "ParkingSpace"
}
],
"hierId": "parking_hierarchy_sid",
"thirdPartyId": "pspotz001n005",
"parent": {
"entityType": "ParkingSpace",
"entityId": "Simulated__DEVNET002__spacez001"
},
"state": {
"reliability": 100,
"prevExpectedRevenue": 0,
"occupied": true
},
"sensorCustomerId": "SDPCustomer_500050",
"parkingSpaceId": "Simulated__DEVNET002__spacez001",
"lastUpdated": "2017-08-28T11:23:00.172Z",
"geocoordinates": {
"longitude": -121.9251549,
"latitude": 37.40796547
},
"label": "PT001_005"
}
},
{
"ParkingSpot": {
"sid": "Simulated__DEVNET002__pspotz001n006",
"providerDetails": {
"provider": "simulated",
"providerId": "kvt7gvsfwkqoa2wikma5btvdz3lnqkot"
},
"opParams": {
"zoneType": "ValidParking",
"maxDurationMinutes": 285
},
"ancestor": [
{
"entityId": "Simulated__DEVNET002__spacez001",
"entityType": "ParkingSpace"
}
],
"hierId": "parking_hierarchy_sid",
"thirdPartyId": "pspotz001n006",
"parent": {
"entityType": "ParkingSpace",
"entityId": "Simulated__DEVNET002__spacez001"
},
"state": {
"reliability": 100,
"occupied": false
},
"sensorCustomerId": "SDPCustomer_500050",
"parkingSpaceId": "Simulated__DEVNET002__spacez001",
"lastUpdated": "2016-10-31T10:11:24.476Z",
"geocoordinates": {
"longitude": -121.9260806,
"latitude": 37.40777725
},
"label": "PT001_006"
}
},
{
"ParkingSpot": {
"sid": "Simulated__DEVNET002__pspotz001n007",
"providerDetails": {
"provider": "simulated",
"providerId": "kvt7gvsfwkqoa2wikma5btvdz3lnqkot"
},
"opParams": {
"zoneType": "ValidParking",
"maxDurationMinutes": 272
},
"ancestor": [
{
"entityId": "Simulated__DEVNET002__spacez001",
"entityType": "ParkingSpace"
}
],
"hierId": "parking_hierarchy_sid",
"thirdPartyId": "pspotz001n007",
"parent": {
"entityType": "ParkingSpace",
"entityId": "Simulated__DEVNET002__spacez001"
},
"state": {
"reliability": 100,
"occupied": false
},
"sensorCustomerId": "SDPCustomer_500050",
"parkingSpaceId": "Simulated__DEVNET002__spacez001",
"lastUpdated": "2016-10-31T10:11:24.476Z",
"geocoordinates": {
"longitude": -121.9290508,
"latitude": 37.40595168
},
"label": "PT001_007"
}
},
{
"ParkingSpot": {
"sid": "Simulated__DEVNET002__pspotz001n008",
"providerDetails": {
"provider": "simulated",
"providerId": "kvt7gvsfwkqoa2wikma5btvdz3lnqkot"
},
"opParams": {
"zoneType": "ValidParking",
"maxDurationMinutes": 261
},
"ancestor": [
{
"entityId": "Simulated__DEVNET002__spacez001",
"entityType": "ParkingSpace"
}
],
"hierId": "parking_hierarchy_sid",
"thirdPartyId": "pspotz001n008",
"parent": {
"entityType": "ParkingSpace",
"entityId": "Simulated__DEVNET002__spacez001"
},
"state": {
"reliability": 100,
"occupied": false
},
"sensorCustomerId": "SDPCustomer_500050",
"parkingSpaceId": "Simulated__DEVNET002__spacez001",
"lastUpdated": "2016-10-31T10:11:24.476Z",
"geocoordinates": {
"longitude": -121.9262451,
"latitude": 37.40987387
},
"label": "PT001_008"
}
},
{
"ParkingSpot": {
"sid": "Simulated__DEVNET002__pspotz001n009",
"providerDetails": {
"provider": "simulated",
"providerId": "kvt7gvsfwkqoa2wikma5btvdz3lnqkot"
},
"opParams": {
"zoneType": "ValidParking",
"maxDurationMinutes": 297
},
"ancestor": [
{
"entityId": "Simulated__DEVNET002__spacez001",
"entityType": "ParkingSpace"
}
],
"hierId": "parking_hierarchy_sid",
"thirdPartyId": "pspotz001n009",
"parent": {
"entityType": "ParkingSpace",
"entityId": "Simulated__DEVNET002__spacez001"
},
"state": {
"reliability": 100,
"occupied": false
},
"sensorCustomerId": "SDPCustomer_500050",
"parkingSpaceId": "Simulated__DEVNET002__spacez001",
"lastUpdated": "2016-10-31T10:11:24.476Z",
"geocoordinates": {
"longitude": -121.9307948,
"latitude": 37.4095092
},
"label": "PT001_009"
}
},
{
"ParkingSpot": {
"sid": "Simulated__DEVNET002__pspotz001n010",
"providerDetails": {
"provider": "simulated",
"providerId": "kvt7gvsfwkqoa2wikma5btvdz3lnqkot"
},
"opParams": {
"zoneType": "ValidParking",
"maxDurationMinutes": 250
},
"ancestor": [
{
"entityId": "Simulated__DEVNET002__spacez001",
"entityType": "ParkingSpace"
}
],
"hierId": "parking_hierarchy_sid",
"thirdPartyId": "pspotz001n010",
"parent": {
"entityType": "ParkingSpace",
"entityId": "Simulated__DEVNET002__spacez001"
},
"state": {
"reliability": 100,
"prevExpectedRevenue": 0,
"occupied": false
},
"sensorCustomerId": "SDPCustomer_500050",
"parkingSpaceId": "Simulated__DEVNET002__spacez001",
"lastUpdated": "2017-08-28T11:23:00.136Z",
"geocoordinates": {
"longitude": -121.9272564,
"latitude": 37.40693968
},
"label": "PT001_010"
}
},
{
"ParkingSpot": {
"sid": "Simulated__DEVNET002__pspotz001n011",
"providerDetails": {
"provider": "simulated",
"providerId": "kvt7gvsfwkqoa2wikma5btvdz3lnqkot"
},
"opParams": {
"zoneType": "ValidParking",
"maxDurationMinutes": 254
},
"ancestor": [
{
"entityId": "Simulated__DEVNET002__spacez001",
"entityType": "ParkingSpace"
}
],
"hierId": "parking_hierarchy_sid",
"thirdPartyId": "pspotz001n011",
"parent": {
"entityType": "ParkingSpace",
"entityId": "Simulated__DEVNET002__spacez001"
},
"state": {
"reliability": 100,
"occupied": false
},
"sensorCustomerId": "SDPCustomer_500050",
"parkingSpaceId": "Simulated__DEVNET002__spacez001",
"lastUpdated": "2016-10-31T10:11:24.476Z",
"geocoordinates": {
"longitude": -121.9278651,
"latitude": 37.40923511
},
"label": "PT001_011"
}
},
{
"ParkingSpot": {
"sid": "Simulated__DEVNET002__pspotz001n012",
"providerDetails": {
"provider": "simulated",
"providerId": "kvt7gvsfwkqoa2wikma5btvdz3lnqkot"
},
"opParams": {
"zoneType": "ValidParking",
"maxDurationMinutes": 267
},
"ancestor": [
{
"entityId": "Simulated__DEVNET002__spacez001",
"entityType": "ParkingSpace"
}
],
"hierId": "parking_hierarchy_sid",
"thirdPartyId": "pspotz001n012",
"parent": {
"entityType": "ParkingSpace",
"entityId": "Simulated__DEVNET002__spacez001"
},
"state": {
"reliability": 100,
"occupied": false
},
"sensorCustomerId": "SDPCustomer_500050",
"parkingSpaceId": "Simulated__DEVNET002__spacez001",
"lastUpdated": "2016-10-31T10:11:24.476Z",
"geocoordinates": {
"longitude": -121.9251029,
"latitude": 37.40861023
},
"label": "PT001_012"
}
},
{
"ParkingSpot": {
"sid": "Simulated__DEVNET002__pspotz001n013",
"providerDetails": {
"provider": "simulated",
"providerId": "kvt7gvsfwkqoa2wikma5btvdz3lnqkot"
},
"opParams": {
"zoneType": "ValidParking",
"maxDurationMinutes": 266
},
"ancestor": [
{
"entityId": "Simulated__DEVNET002__spacez001",
"entityType": "ParkingSpace"
}
],
"hierId": "parking_hierarchy_sid",
"thirdPartyId": "pspotz001n013",
"parent": {
"entityType": "ParkingSpace",
"entityId": "Simulated__DEVNET002__spacez001"
},
"state": {
"reliability": 100,
"occupied": false
},
"sensorCustomerId": "SDPCustomer_500050",
"parkingSpaceId": "Simulated__DEVNET002__spacez001",
"lastUpdated": "2016-10-31T10:11:24.476Z",
"geocoordinates": {
"longitude": -121.9281412,
"latitude": 37.40560236
},
"label": "PT001_013"
}
},
{
"ParkingSpot": {
"sid": "Simulated__DEVNET002__pspotz001n014",
"providerDetails": {
"provider": "simulated",
"providerId": "kvt7gvsfwkqoa2wikma5btvdz3lnqkot"
},
"opParams": {
"zoneType": "ValidParking",
"maxDurationMinutes": 261
},
"ancestor": [
{
"entityId": "Simulated__DEVNET002__spacez001",
"entityType": "ParkingSpace"
}
],
"hierId": "parking_hierarchy_sid",
"thirdPartyId": "pspotz001n014",
"parent": {
"entityType": "ParkingSpace",
"entityId": "Simulated__DEVNET002__spacez001"
},
"state": {
"reliability": 100,
"occupied": false
},
"sensorCustomerId": "SDPCustomer_500050",
"parkingSpaceId": "Simulated__DEVNET002__spacez001",
"lastUpdated": "2016-10-31T10:11:24.476Z",
"geocoordinates": {
"longitude": -121.9291913,
"latitude": 37.40688813
},
"label": "PT001_014"
}
},
{
"ParkingSpot": {
"sid": "Simulated__DEVNET002__pspotz001n015",
"providerDetails": {
"provider": "simulated",
"providerId": "kvt7gvsfwkqoa2wikma5btvdz3lnqkot"
},
"opParams": {
"zoneType": "ValidParking",
"maxDurationMinutes": 254
},
"ancestor": [
{
"entityId": "Simulated__DEVNET002__spacez001",
"entityType": "ParkingSpace"
}
],
"hierId": "parking_hierarchy_sid",
"thirdPartyId": "pspotz001n015",
"parent": {
"entityType": "ParkingSpace",
"entityId": "Simulated__DEVNET002__spacez001"
},
"state": {
"reliability": 100,
"prevExpectedRevenue": 0,
"occupied": true
},
"sensorCustomerId": "SDPCustomer_500050",
"parkingSpaceId": "Simulated__DEVNET002__spacez001",
"lastUpdated": "2017-08-28T11:23:00.293Z",
"geocoordinates": {
"longitude": -121.9295963,
"latitude": 37.40690062
},
"label": "PT001_015"
}
},
{
"ParkingSpot": {
"sid": "Simulated__DEVNET002__pspotz001n016",
"providerDetails": {
"provider": "simulated",
"providerId": "kvt7gvsfwkqoa2wikma5btvdz3lnqkot"
},
"opParams": {
"zoneType": "ValidParking",
"maxDurationMinutes": 264
},
"ancestor": [
{
"entityId": "Simulated__DEVNET002__spacez001",
"entityType": "ParkingSpace"
}
],
"hierId": "parking_hierarchy_sid",
"thirdPartyId": "pspotz001n016",
"parent": {
"entityType": "ParkingSpace",
"entityId": "Simulated__DEVNET002__spacez001"
},
"state": {
"reliability": 100,
"occupied": false
},
"sensorCustomerId": "SDPCustomer_500050",
"parkingSpaceId": "Simulated__DEVNET002__spacez001",
"lastUpdated": "2016-10-31T10:11:24.476Z",
"geocoordinates": {
"longitude": -121.9282212,
"latitude": 37.40583163
},
"label": "PT001_016"
}
},
{
"ParkingSpot": {
"sid": "Simulated__DEVNET002__pspotz001n017",
"providerDetails": {
"provider": "simulated",
"providerId": "kvt7gvsfwkqoa2wikma5btvdz3lnqkot"
},
"opParams": {
"zoneType": "ValidParking",
"maxDurationMinutes": 250
},
"ancestor": [
{
"entityId": "Simulated__DEVNET002__spacez001",
"entityType": "ParkingSpace"
}
],
"hierId": "parking_hierarchy_sid",
"thirdPartyId": "pspotz001n017",
"parent": {
"entityType": "ParkingSpace",
"entityId": "Simulated__DEVNET002__spacez001"
},
"state": {
"reliability": 100,
"occupied": false
},
"sensorCustomerId": "SDPCustomer_500050",
"parkingSpaceId": "Simulated__DEVNET002__spacez001",
"lastUpdated": "2016-10-31T10:11:24.476Z",
"geocoordinates": {
"longitude": -121.9250196,
"latitude": 37.40913023
},
"label": "PT001_017"
}
},
{
"ParkingSpot": {
"sid": "Simulated__DEVNET002__pspotz001n018",
"providerDetails": {
"provider": "simulated",
"providerId": "kvt7gvsfwkqoa2wikma5btvdz3lnqkot"
},
"opParams": {
"zoneType": "ValidParking",
"maxDurationMinutes": 275
},
"ancestor": [
{
"entityId": "Simulated__DEVNET002__spacez001",
"entityType": "ParkingSpace"
}
],
"hierId": "parking_hierarchy_sid",
"thirdPartyId": "pspotz001n018",
"parent": {
"entityType": "ParkingSpace",
"entityId": "Simulated__DEVNET002__spacez001"
},
"state": {
"reliability": 100,
"occupied": false
},
"sensorCustomerId": "SDPCustomer_500050",
"parkingSpaceId": "Simulated__DEVNET002__spacez001",
"lastUpdated": "2016-10-31T10:11:24.476Z",
"geocoordinates": {
"longitude": -121.9308379,
"latitude": 37.40861791
},
"label": "PT001_018"
}
},
{
"ParkingSpot": {
"sid": "Simulated__DEVNET002__pspotz001n019",
"providerDetails": {
"provider": "simulated",
"providerId": "kvt7gvsfwkqoa2wikma5btvdz3lnqkot"
},
"opParams": {
"zoneType": "ValidParking",
"maxDurationMinutes": 250
},
"ancestor": [
{
"entityId": "Simulated__DEVNET002__spacez001",
"entityType": "ParkingSpace"
}
],
"hierId": "parking_hierarchy_sid",
"thirdPartyId": "pspotz001n019",
"parent": {
"entityType": "ParkingSpace",
"entityId": "Simulated__DEVNET002__spacez001"
},
"state": {
"reliability": 100,
"occupied": false
},
"sensorCustomerId": "SDPCustomer_500050",
"parkingSpaceId": "Simulated__DEVNET002__spacez001",
"lastUpdated": "2016-10-31T10:11:24.476Z",
"geocoordinates": {
"longitude": -121.9283413,
"latitude": 37.4088984
},
"label": "PT001_019"
}
},
{
"ParkingSpot": {
"sid": "Simulated__DEVNET002__pspotz001n020",
"providerDetails": {
"provider": "simulated",
"providerId": "kvt7gvsfwkqoa2wikma5btvdz3lnqkot"
},
"opParams": {
"zoneType": "ValidParking",
"maxDurationMinutes": 293
},
"ancestor": [
{
"entityId": "Simulated__DEVNET002__spacez001",
"entityType": "ParkingSpace"
}
],
"hierId": "parking_hierarchy_sid",
"thirdPartyId": "pspotz001n020",
"parent": {
"entityType": "ParkingSpace",
"entityId": "Simulated__DEVNET002__spacez001"
},
"state": {
"reliability": 100,
"prevExpectedRevenue": 0,
"occupied": true
},
"sensorCustomerId": "SDPCustomer_500050",
"parkingSpaceId": "Simulated__DEVNET002__spacez001",
"lastUpdated": "2017-08-28T11:23:00.076Z",
"geocoordinates": {
"longitude": -121.9298421,
"latitude": 37.40690341
},
"label": "PT001_020"
}
},
{
"ParkingSpot": {
"sid": "Simulated__DEVNET002__pspotz002n001",
"providerDetails": {
"provider": "simulated",
"providerId": "kvt7gvsfwkqoa2wikma5btvdz3lnqkot"
},
"opParams": {
"zoneType": "ValidParking",
"maxDurationMinutes": 251
},
"ancestor": [
{
"entityId": "Simulated__DEVNET002__spacez002",
"entityType": "ParkingSpace"
}
],
"hierId": "parking_hierarchy_sid",
"thirdPartyId": "pspotz002n001",
"parent": {
"entityType": "ParkingSpace",
"entityId": "Simulated__DEVNET002__spacez002"
},
"state": {
"reliability": 100,
"occupied": true
},
"sensorCustomerId": "SDPCustomer_500050",
"parkingSpaceId": "Simulated__DEVNET002__spacez002",
"lastUpdated": "2016-12-07T08:54:07.865Z",
"geocoordinates": {
"longitude": 77.02522518,
"latitude": 28.46154595
},
"label": "PT001_001"
}
},
{
"ParkingSpot": {
"sid": "Simulated__DEVNET002__pspotz002n002",
"providerDetails": {
"provider": "simulated",
"providerId": "kvt7gvsfwkqoa2wikma5btvdz3lnqkot"
},
"opParams": {
"zoneType": "ValidParking",
"maxDurationMinutes": 283
},
"ancestor": [
{
"entityId": "Simulated__DEVNET002__spacez002",
"entityType": "ParkingSpace"
}
],
"hierId": "parking_hierarchy_sid",
"thirdPartyId": "pspotz002n002",
"parent": {
"entityType": "ParkingSpace",
"entityId": "Simulated__DEVNET002__spacez002"
},
"state": {
"reliability": 100,
"occupied": false
},
"sensorCustomerId": "SDPCustomer_500050",
"parkingSpaceId": "Simulated__DEVNET002__spacez002",
"lastUpdated": "2016-12-07T08:54:07.865Z",
"geocoordinates": {
"longitude": 77.02363684,
"latitude": 28.45976534
},
"label": "PT001_002"
}
},
{
"ParkingSpot": {
"sid": "Simulated__DEVNET002__pspotz002n003",
"providerDetails": {
"provider": "simulated",
"providerId": "kvt7gvsfwkqoa2wikma5btvdz3lnqkot"
},
"opParams": {
"zoneType": "ValidParking",
"maxDurationMinutes": 274
},
"ancestor": [
{
"entityId": "Simulated__DEVNET002__spacez002",
"entityType": "ParkingSpace"
}
],
"hierId": "parking_hierarchy_sid",
"thirdPartyId": "pspotz002n003",
"parent": {
"entityType": "ParkingSpace",
"entityId": "Simulated__DEVNET002__spacez002"
},
"state": {
"reliability": 100,
"occupied": true
},
"sensorCustomerId": "SDPCustomer_500050",
"parkingSpaceId": "Simulated__DEVNET002__spacez002",
"lastUpdated": "2016-12-07T08:54:07.865Z",
"geocoordinates": {
"longitude": 77.02748236,
"latitude": 28.45844796
},
"label": "PT001_003"
}
},
{
"ParkingSpot": {
"sid": "Simulated__DEVNET002__pspotz002n004",
"providerDetails": {
"provider": "simulated",
"providerId": "kvt7gvsfwkqoa2wikma5btvdz3lnqkot"
},
"opParams": {
"zoneType": "ValidParking",
"maxDurationMinutes": 269
},
"ancestor": [
{
"entityId": "Simulated__DEVNET002__spacez002",
"entityType": "ParkingSpace"
}
],
"hierId": "parking_hierarchy_sid",
"thirdPartyId": "pspotz002n004",
"parent": {
"entityType": "ParkingSpace",
"entityId": "Simulated__DEVNET002__spacez002"
},
"state": {
"reliability": 100,
"occupied": true
},
"sensorCustomerId": "SDPCustomer_500050",
"parkingSpaceId": "Simulated__DEVNET002__spacez002",
"lastUpdated": "2016-12-07T08:54:07.865Z",
"geocoordinates": {
"longitude": 77.02688269,
"latitude": 28.45698265
},
"label": "PT001_004"
}
},
{
"ParkingSpot": {
"sid": "Simulated__DEVNET002__pspotz002n005",
"providerDetails": {
"provider": "simulated",
"providerId": "kvt7gvsfwkqoa2wikma5btvdz3lnqkot"
},
"opParams": {
"zoneType": "ValidParking",
"maxDurationMinutes": 289
},
"ancestor": [
{
"entityId": "Simulated__DEVNET002__spacez002",
"entityType": "ParkingSpace"
}
],
"hierId": "parking_hierarchy_sid",
"thirdPartyId": "pspotz002n005",
"parent": {
"entityType": "ParkingSpace",
"entityId": "Simulated__DEVNET002__spacez002"
},
"state": {
"reliability": 100,
"prevExpectedRevenue": 0,
"occupied": false
},
"sensorCustomerId": "SDPCustomer_500050",
"parkingSpaceId": "Simulated__DEVNET002__spacez002",
"lastUpdated": "2017-08-28T11:23:00.102Z",
"geocoordinates": {
"longitude": 77.02577338,
"latitude": 28.45876184
},
"label": "PT001_005"
}
},
{
"ParkingSpot": {
"sid": "Simulated__DEVNET002__pspotz002n006",
"providerDetails": {
"provider": "simulated",
"providerId": "kvt7gvsfwkqoa2wikma5btvdz3lnqkot"
},
"opParams": {
"zoneType": "ValidParking",
"maxDurationMinutes": 290
},
"ancestor": [
{
"entityId": "Simulated__DEVNET002__spacez002",
"entityType": "ParkingSpace"
}
],
"hierId": "parking_hierarchy_sid",
"thirdPartyId": "pspotz002n006",
"parent": {
"entityType": "ParkingSpace",
"entityId": "Simulated__DEVNET002__spacez002"
},
"state": {
"reliability": 100,
"occupied": true
},
"sensorCustomerId": "SDPCustomer_500050",
"parkingSpaceId": "Simulated__DEVNET002__spacez002",
"lastUpdated": "2016-12-07T08:54:07.865Z",
"geocoordinates": {
"longitude": 77.02731729,
"latitude": 28.4583889
},
"label": "PT001_006"
}
},
{
"ParkingSpot": {
"sid": "Simulated__DEVNET002__pspotz002n007",
"providerDetails": {
"provider": "simulated",
"providerId": "kvt7gvsfwkqoa2wikma5btvdz3lnqkot"
},
"opParams": {
"zoneType": "ValidParking",
"maxDurationMinutes": 251
},
"ancestor": [
{
"entityId": "Simulated__DEVNET002__spacez002",
"entityType": "ParkingSpace"
}
],
"hierId": "parking_hierarchy_sid",
"thirdPartyId": "pspotz002n007",
"parent": {
"entityType": "ParkingSpace",
"entityId": "Simulated__DEVNET002__spacez002"
},
"state": {
"reliability": 100,
"occupied": true
},
"sensorCustomerId": "SDPCustomer_500050",
"parkingSpaceId": "Simulated__DEVNET002__spacez002",
"lastUpdated": "2016-12-07T08:54:07.865Z",
"geocoordinates": {
"longitude": 77.02770998,
"latitude": 28.45922535
},
"label": "PT001_007"
}
},
{
"ParkingSpot": {
"sid": "Simulated__DEVNET002__pspotz002n008",
"providerDetails": {
"provider": "simulated",
"providerId": "kvt7gvsfwkqoa2wikma5btvdz3lnqkot"
},
"opParams": {
"zoneType": "ValidParking",
"maxDurationMinutes": 251
},
"ancestor": [
{
"entityId": "Simulated__DEVNET002__spacez002",
"entityType": "ParkingSpace"
}
],
"hierId": "parking_hierarchy_sid",
"thirdPartyId": "pspotz002n008",
"parent": {
"entityType": "ParkingSpace",
"entityId": "Simulated__DEVNET002__spacez002"
},
"state": {
"reliability": 100,
"occupied": true
},
"sensorCustomerId": "SDPCustomer_500050",
"parkingSpaceId": "Simulated__DEVNET002__spacez002",
"lastUpdated": "2016-12-07T08:54:07.865Z",
"geocoordinates": {
"longitude": 77.02675125,
"latitude": 28.46164788
},
"label": "PT001_008"
}
},
{
"ParkingSpot": {
"sid": "Simulated__DEVNET002__pspotz002n009",
"providerDetails": {
"provider": "simulated",
"providerId": "kvt7gvsfwkqoa2wikma5btvdz3lnqkot"
},
"opParams": {
"zoneType": "ValidParking",
"maxDurationMinutes": 283
},
"ancestor": [
{
"entityId": "Simulated__DEVNET002__spacez002",
"entityType": "ParkingSpace"
}
],
"hierId": "parking_hierarchy_sid",
"thirdPartyId": "pspotz002n009",
"parent": {
"entityType": "ParkingSpace",
"entityId": "Simulated__DEVNET002__spacez002"
},
"state": {
"reliability": 100,
"occupied": false
},
"sensorCustomerId": "SDPCustomer_500050",
"parkingSpaceId": "Simulated__DEVNET002__spacez002",
"lastUpdated": "2016-12-07T08:54:07.865Z",
"geocoordinates": {
"longitude": 77.02737839,
"latitude": 28.45862968
},
"label": "PT001_009"
}
},
{
"ParkingSpot": {
"sid": "Simulated__DEVNET002__pspotz002n010",
"providerDetails": {
"provider": "simulated",
"providerId": "kvt7gvsfwkqoa2wikma5btvdz3lnqkot"
},
"opParams": {
"zoneType": "ValidParking",
"maxDurationMinutes": 288
},
"ancestor": [
{
"entityId": "Simulated__DEVNET002__spacez002",
"entityType": "ParkingSpace"
}
],
"hierId": "parking_hierarchy_sid",
"thirdPartyId": "pspotz002n010",
"parent": {
"entityType": "ParkingSpace",
"entityId": "Simulated__DEVNET002__spacez002"
},
"state": {
"reliability": 100,
"prevExpectedRevenue": 0,
"occupied": true
},
"sensorCustomerId": "SDPCustomer_500050",
"parkingSpaceId": "Simulated__DEVNET002__spacez002",
"lastUpdated": "2017-08-28T11:23:00.085Z",
"geocoordinates": {
"longitude": 77.02504431,
"latitude": 28.46092062
},
"label": "PT001_010"
}
},
{
"ParkingSpot": {
"sid": "Simulated__DEVNET002__pspotz002n011",
"providerDetails": {
"provider": "simulated",
"providerId": "kvt7gvsfwkqoa2wikma5btvdz3lnqkot"
},
"opParams": {
"zoneType": "ValidParking",
"maxDurationMinutes": 296
},
"ancestor": [
{
"entityId": "Simulated__DEVNET002__spacez002",
"entityType": "ParkingSpace"
}
],
"hierId": "parking_hierarchy_sid",
"thirdPartyId": "pspotz002n011",
"parent": {
"entityType": "ParkingSpace",
"entityId": "Simulated__DEVNET002__spacez002"
},
"state": {
"reliability": 100,
"occupied": true
},
"sensorCustomerId": "SDPCustomer_500050",
"parkingSpaceId": "Simulated__DEVNET002__spacez002",
"lastUpdated": "2016-12-07T08:54:07.865Z",
"geocoordinates": {
"longitude": 77.02724903,
"latitude": 28.46157387
},
"label": "PT001_011"
}
},
{
"ParkingSpot": {
"sid": "Simulated__DEVNET002__pspotz002n012",
"providerDetails": {
"provider": "simulated",
"providerId": "kvt7gvsfwkqoa2wikma5btvdz3lnqkot"
},
"opParams": {
"zoneType": "ValidParking",
"maxDurationMinutes": 261
},
"ancestor": [
{
"entityId": "Simulated__DEVNET002__spacez002",
"entityType": "ParkingSpace"
}
],
"hierId": "parking_hierarchy_sid",
"thirdPartyId": "pspotz002n012",
"parent": {
"entityType": "ParkingSpace",
"entityId": "Simulated__DEVNET002__spacez002"
},
"state": {
"reliability": 100,
"occupied": false
},
"sensorCustomerId": "SDPCustomer_500050",
"parkingSpaceId": "Simulated__DEVNET002__spacez002",
"lastUpdated": "2016-12-07T08:54:07.865Z",
"geocoordinates": {
"longitude": 77.02811649,
"latitude": 28.45765005
},
"label": "PT001_012"
}
},
{
"ParkingSpot": {
"sid": "Simulated__DEVNET002__pspotz002n013",
"providerDetails": {
"provider": "simulated",
"providerId": "kvt7gvsfwkqoa2wikma5btvdz3lnqkot"
},
"opParams": {
"zoneType": "ValidParking",
"maxDurationMinutes": 297
},
"ancestor": [
{
"entityId": "Simulated__DEVNET002__spacez002",
"entityType": "ParkingSpace"
}
],
"hierId": "parking_hierarchy_sid",
"thirdPartyId": "pspotz002n013",
"parent": {
"entityType": "ParkingSpace",
"entityId": "Simulated__DEVNET002__spacez002"
},
"state": {
"reliability": 100,
"occupied": false
},
"sensorCustomerId": "SDPCustomer_500050",
"parkingSpaceId": "Simulated__DEVNET002__spacez002",
"lastUpdated": "2016-12-07T08:54:07.865Z",
"geocoordinates": {
"longitude": 77.02569766,
"latitude": 28.4618302
},
"label": "PT001_013"
}
},
{
"ParkingSpot": {
"sid": "Simulated__DEVNET002__pspotz002n014",
"providerDetails": {
"provider": "simulated",
"providerId": "kvt7gvsfwkqoa2wikma5btvdz3lnqkot"
},
"opParams": {
"zoneType": "ValidParking",
"maxDurationMinutes": 289
},
"ancestor": [
{
"entityId": "Simulated__DEVNET002__spacez002",
"entityType": "ParkingSpace"
}
],
"hierId": "parking_hierarchy_sid",
"thirdPartyId": "pspotz002n014",
"parent": {
"entityType": "ParkingSpace",
"entityId": "Simulated__DEVNET002__spacez002"
},
"state": {
"reliability": 100,
"occupied": true
},
"sensorCustomerId": "SDPCustomer_500050",
"parkingSpaceId": "Simulated__DEVNET002__spacez002",
"lastUpdated": "2016-12-07T08:54:07.865Z",
"geocoordinates": {
"longitude": 77.02614448,
"latitude": 28.45898096
},
"label": "PT001_014"
}
},
{
"ParkingSpot": {
"sid": "Simulated__DEVNET002__pspotz002n015",
"providerDetails": {
"provider": "simulated",
"providerId": "kvt7gvsfwkqoa2wikma5btvdz3lnqkot"
},
"opParams": {
"zoneType": "ValidParking",
"maxDurationMinutes": 260
},
"ancestor": [
{
"entityId": "Simulated__DEVNET002__spacez002",
"entityType": "ParkingSpace"
}
],
"hierId": "parking_hierarchy_sid",
"thirdPartyId": "pspotz002n015",
"parent": {
"entityType": "ParkingSpace",
"entityId": "Simulated__DEVNET002__spacez002"
},
"state": {
"reliability": 100,
"prevExpectedRevenue": 0,
"occupied": false
},
"sensorCustomerId": "SDPCustomer_500050",
"parkingSpaceId": "Simulated__DEVNET002__spacez002",
"lastUpdated": "2017-08-28T11:23:00.290Z",
"geocoordinates": {
"longitude": 77.02832643,
"latitude": 28.45785972
},
"label": "PT001_015"
}
},
{
"ParkingSpot": {
"sid": "Simulated__DEVNET002__pspotz002n016",
"providerDetails": {
"provider": "simulated",
"providerId": "kvt7gvsfwkqoa2wikma5btvdz3lnqkot"
},
"opParams": {
"zoneType": "ValidParking",
"maxDurationMinutes": 256
},
"ancestor": [
{
"entityId": "Simulated__DEVNET002__spacez002",
"entityType": "ParkingSpace"
}
],
"hierId": "parking_hierarchy_sid",
"thirdPartyId": "pspotz002n016",
"parent": {
"entityType": "ParkingSpace",
"entityId": "Simulated__DEVNET002__spacez002"
},
"state": {
"reliability": 100,
"occupied": true
},
"sensorCustomerId": "SDPCustomer_500050",
"parkingSpaceId": "Simulated__DEVNET002__spacez002",
"lastUpdated": "2016-12-07T08:54:07.865Z",
"geocoordinates": {
"longitude": 77.02588313,
"latitude": 28.45692433
},
"label": "PT001_016"
}
},
{
"ParkingSpot": {
"sid": "Simulated__DEVNET002__pspotz002n017",
"providerDetails": {
"provider": "simulated",
"providerId": "kvt7gvsfwkqoa2wikma5btvdz3lnqkot"
},
"opParams": {
"zoneType": "ValidParking",
"maxDurationMinutes": 270
},
"ancestor": [
{
"entityId": "Simulated__DEVNET002__spacez002",
"entityType": "ParkingSpace"
}
],
"hierId": "parking_hierarchy_sid",
"thirdPartyId": "pspotz002n017",
"parent": {
"entityType": "ParkingSpace",
"entityId": "Simulated__DEVNET002__spacez002"
},
"state": {
"reliability": 100,
"occupied": true
},
"sensorCustomerId": "SDPCustomer_500050",
"parkingSpaceId": "Simulated__DEVNET002__spacez002",
"lastUpdated": "2016-12-07T08:54:07.865Z",
"geocoordinates": {
"longitude": 77.0266508,
"latitude": 28.45869328
},
"label": "PT001_017"
}
},
{
"ParkingSpot": {
"sid": "Simulated__DEVNET002__pspotz002n018",
"providerDetails": {
"provider": "simulated",
"providerId": "kvt7gvsfwkqoa2wikma5btvdz3lnqkot"
},
"opParams": {
"zoneType": "ValidParking",
"maxDurationMinutes": 277
},
"ancestor": [
{
"entityId": "Simulated__DEVNET002__spacez002",
"entityType": "ParkingSpace"
}
],
"hierId": "parking_hierarchy_sid",
"thirdPartyId": "pspotz002n018",
"parent": {
"entityType": "ParkingSpace",
"entityId": "Simulated__DEVNET002__spacez002"
},
"state": {
"reliability": 100,
"occupied": false
},
"sensorCustomerId": "SDPCustomer_500050",
"parkingSpaceId": "Simulated__DEVNET002__spacez002",
"lastUpdated": "2016-12-07T08:54:07.865Z",
"geocoordinates": {
"longitude": 77.02372056,
"latitude": 28.46019255
},
"label": "PT001_018"
}
},
{
"ParkingSpot": {
"sid": "Simulated__DEVNET002__pspotz002n019",
"providerDetails": {
"provider": "simulated",
"providerId": "kvt7gvsfwkqoa2wikma5btvdz3lnqkot"
},
"opParams": {
"zoneType": "ValidParking",
"maxDurationMinutes": 299
},
"ancestor": [
{
"entityId": "Simulated__DEVNET002__spacez002",
"entityType": "ParkingSpace"
}
],
"hierId": "parking_hierarchy_sid",
"thirdPartyId": "pspotz002n019",
"parent": {
"entityType": "ParkingSpace",
"entityId": "Simulated__DEVNET002__spacez002"
},
"state": {
"reliability": 100,
"occupied": true
},
"sensorCustomerId": "SDPCustomer_500050",
"parkingSpaceId": "Simulated__DEVNET002__spacez002",
"lastUpdated": "2016-12-07T08:54:07.865Z",
"geocoordinates": {
"longitude": 77.02938509,
"latitude": 28.45969467
},
"label": "PT001_019"
}
},
{
"ParkingSpot": {
"sid": "Simulated__DEVNET002__pspotz002n020",
"providerDetails": {
"provider": "simulated",
"providerId": "kvt7gvsfwkqoa2wikma5btvdz3lnqkot"
},
"opParams": {
"zoneType": "ValidParking",
"maxDurationMinutes": 257
},
"ancestor": [
{
"entityId": "Simulated__DEVNET002__spacez002",
"entityType": "ParkingSpace"
}
],
"hierId": "parking_hierarchy_sid",
"thirdPartyId": "pspotz002n020",
"parent": {
"entityType": "ParkingSpace",
"entityId": "Simulated__DEVNET002__spacez002"
},
"state": {
"reliability": 100,
"prevExpectedRevenue": 0,
"occupied": true
},
"sensorCustomerId": "SDPCustomer_500050",
"parkingSpaceId": "Simulated__DEVNET002__spacez002",
"lastUpdated": "2017-08-28T11:23:00.192Z",
"geocoordinates": {
"longitude": 77.0271956,
"latitude": 28.45935744
},
"label": "PT001_020"
}
},
{
"ParkingSpot": {
"sid": "Simulated__DEVNET002__pspotzBell002n001",
"providerDetails": {
"provider": "simulated",
"providerId": "kvt7gvsfwkqoa2wikma5btvdz3lnqkot"
},
"opParams": {
"zoneType": "ValidParking",
"maxDurationMinutes": 279
},
"ancestor": [
{
"entityId": "Simulated__DEVNET002__spacezBell001",
"entityType": "ParkingSpace"
}
],
"hierId": "parking_hierarchy_sid",
"thirdPartyId": "pspotzBell002n001",
"parent": {
"entityType": "ParkingSpace",
"entityId": "Simulated__DEVNET002__spacezBell001"
},
"state": {
"reliability": 100,
"occupied": false
},
"sensorCustomerId": "SDPCustomer_500050",
"parkingSpaceId": "Simulated__DEVNET002__spacezBell001",
"lastUpdated": "2016-12-20T14:52:51.922Z",
"geocoordinates": {
"longitude": -113.6267325,
"latitude": 53.52595926
},
"label": "PTBell002_001"
}
},
{
"ParkingSpot": {
"sid": "Simulated__DEVNET002__pspotzBell002n002",
"providerDetails": {
"provider": "simulated",
"providerId": "kvt7gvsfwkqoa2wikma5btvdz3lnqkot"
},
"opParams": {
"zoneType": "ValidParking",
"maxDurationMinutes": 251
},
"ancestor": [
{
"entityId": "Simulated__DEVNET002__spacezBell001",
"entityType": "ParkingSpace"
}
],
"hierId": "parking_hierarchy_sid",
"thirdPartyId": "pspotzBell002n002",
"parent": {
"entityType": "ParkingSpace",
"entityId": "Simulated__DEVNET002__spacezBell001"
},
"state": {
"reliability": 100,
"occupied": true
},
"sensorCustomerId": "SDPCustomer_500050",
"parkingSpaceId": "Simulated__DEVNET002__spacezBell001",
"lastUpdated": "2016-12-20T14:52:51.922Z",
"geocoordinates": {
"longitude": -113.6246869,
"latitude": 53.52544595
},
"label": "PTBell002_002"
}
},
{
"ParkingSpot": {
"sid": "Simulated__DEVNET002__pspotzBell002n003",
"providerDetails": {
"provider": "simulated",
"providerId": "kvt7gvsfwkqoa2wikma5btvdz3lnqkot"
},
"opParams": {
"zoneType": "ValidParking",
"maxDurationMinutes": 276
},
"ancestor": [
{
"entityId": "Simulated__DEVNET002__spacezBell001",
"entityType": "ParkingSpace"
}
],
"hierId": "parking_hierarchy_sid",
"thirdPartyId": "pspotzBell002n003",
"parent": {
"entityType": "ParkingSpace",
"entityId": "Simulated__DEVNET002__spacezBell001"
},
"state": {
"reliability": 100,
"occupied": true
},
"sensorCustomerId": "SDPCustomer_500050",
"parkingSpaceId": "Simulated__DEVNET002__spacezBell001",
"lastUpdated": "2016-12-20T14:52:51.922Z",
"geocoordinates": {
"longitude": -113.623673,
"latitude": 53.52196801
},
"label": "PTBell002_003"
}
},
{
"ParkingSpot": {
"sid": "Simulated__DEVNET002__pspotzBell002n004",
"providerDetails": {
"provider": "simulated",
"providerId": "kvt7gvsfwkqoa2wikma5btvdz3lnqkot"
},
"opParams": {
"zoneType": "ValidParking",
"maxDurationMinutes": 291
},
"ancestor": [
{
"entityId": "Simulated__DEVNET002__spacezBell001",
"entityType": "ParkingSpace"
}
],
"hierId": "parking_hierarchy_sid",
"thirdPartyId": "pspotzBell002n004",
"parent": {
"entityType": "ParkingSpace",
"entityId": "Simulated__DEVNET002__spacezBell001"
},
"state": {
"reliability": 100,
"occupied": true
},
"sensorCustomerId": "SDPCustomer_500050",
"parkingSpaceId": "Simulated__DEVNET002__spacezBell001",
"lastUpdated": "2016-12-20T14:52:51.922Z",
"geocoordinates": {
"longitude": -113.6228773,
"latitude": 53.52598741
},
"label": "PTBell002_004"
}
},
{
"ParkingSpot": {
"sid": "Simulated__DEVNET002__pspotzBell002n005",
"providerDetails": {
"provider": "simulated",
"providerId": "kvt7gvsfwkqoa2wikma5btvdz3lnqkot"
},
"opParams": {
"zoneType": "ValidParking",
"maxDurationMinutes": 286
},
"ancestor": [
{
"entityId": "Simulated__DEVNET002__spacezBell001",
"entityType": "ParkingSpace"
}
],
"hierId": "parking_hierarchy_sid",
"thirdPartyId": "pspotzBell002n005",
"parent": {
"entityType": "ParkingSpace",
"entityId": "Simulated__DEVNET002__spacezBell001"
},
"state": {
"reliability": 100,
"occupied": true
},
"sensorCustomerId": "SDPCustomer_500050",
"parkingSpaceId": "Simulated__DEVNET002__spacezBell001",
"lastUpdated": "2016-12-20T14:52:51.922Z",
"geocoordinates": {
"longitude": -113.6206561,
"latitude": 53.5254014
},
"label": "PTBell002_005"
}
},
{
"ParkingSpot": {
"sid": "Simulated__DEVNET002__pspotzBell002n006",
"providerDetails": {
"provider": "simulated",
"providerId": "kvt7gvsfwkqoa2wikma5btvdz3lnqkot"
},
"opParams": {
"zoneType": "ValidParking",
"maxDurationMinutes": 254
},
"ancestor": [
{
"entityId": "Simulated__DEVNET002__spacezBell001",
"entityType": "ParkingSpace"
}
],
"hierId": "parking_hierarchy_sid",
"thirdPartyId": "pspotzBell002n006",
"parent": {
"entityType": "ParkingSpace",
"entityId": "Simulated__DEVNET002__spacezBell001"
},
"state": {
"reliability": 100,
"occupied": false
},
"sensorCustomerId": "SDPCustomer_500050",
"parkingSpaceId": "Simulated__DEVNET002__spacezBell001",
"lastUpdated": "2016-12-20T14:52:51.922Z",
"geocoordinates": {
"longitude": -113.6205792,
"latitude": 53.52534033
},
"label": "PTBell002_006"
}
},
{
"ParkingSpot": {
"sid": "Simulated__DEVNET002__pspotzBell002n007",
"providerDetails": {
"provider": "simulated",
"providerId": "kvt7gvsfwkqoa2wikma5btvdz3lnqkot"
},
"opParams": {
"zoneType": "ValidParking",
"maxDurationMinutes": 266
},
"ancestor": [
{
"entityId": "Simulated__DEVNET002__spacezBell001",
"entityType": "ParkingSpace"
}
],
"hierId": "parking_hierarchy_sid",
"thirdPartyId": "pspotzBell002n007",
"parent": {
"entityType": "ParkingSpace",
"entityId": "Simulated__DEVNET002__spacezBell001"
},
"state": {
"reliability": 100,
"occupied": true
},
"sensorCustomerId": "SDPCustomer_500050",
"parkingSpaceId": "Simulated__DEVNET002__spacezBell001",
"lastUpdated": "2016-12-20T14:52:51.922Z",
"geocoordinates": {
"longitude": -113.6213737,
"latitude": 53.525435
},
"label": "PTBell002_007"
}
},
{
"ParkingSpot": {
"sid": "Simulated__DEVNET002__pspotzBell002n008",
"providerDetails": {
"provider": "simulated",
"providerId": "kvt7gvsfwkqoa2wikma5btvdz3lnqkot"
},
"opParams": {
"zoneType": "ValidParking",
"maxDurationMinutes": 258
},
"ancestor": [
{
"entityId": "Simulated__DEVNET002__spacezBell001",
"entityType": "ParkingSpace"
}
],
"hierId": "parking_hierarchy_sid",
"thirdPartyId": "pspotzBell002n008",
"parent": {
"entityType": "ParkingSpace",
"entityId": "Simulated__DEVNET002__spacezBell001"
},
"state": {
"reliability": 100,
"occupied": false
},
"sensorCustomerId": "SDPCustomer_500050",
"parkingSpaceId": "Simulated__DEVNET002__spacezBell001",
"lastUpdated": "2016-12-20T14:52:51.922Z",
"geocoordinates": {
"longitude": -113.6228512,
"latitude": 53.52371036
},
"label": "PTBell002_008"
}
},
{
"ParkingSpot": {
"sid": "Simulated__DEVNET002__pspotzBell002n009",
"providerDetails": {
"provider": "simulated",
"providerId": "kvt7gvsfwkqoa2wikma5btvdz3lnqkot"
},
"opParams": {
"zoneType": "ValidParking",
"maxDurationMinutes": 284
},
"ancestor": [
{
"entityId": "Simulated__DEVNET002__spacezBell001",
"entityType": "ParkingSpace"
}
],
"hierId": "parking_hierarchy_sid",
"thirdPartyId": "pspotzBell002n009",
"parent": {
"entityType": "ParkingSpace",
"entityId": "Simulated__DEVNET002__spacezBell001"
},
"state": {
"reliability": 100,
"occupied": true
},
"sensorCustomerId": "SDPCustomer_500050",
"parkingSpaceId": "Simulated__DEVNET002__spacezBell001",
"lastUpdated": "2016-12-20T14:52:51.922Z",
"geocoordinates": {
"longitude": -113.6195862,
"latitude": 53.52536894
},
"label": "PTBell002_009"
}
},
{
"ParkingSpot": {
"sid": "Simulated__DEVNET002__pspotzBell002n010",
"providerDetails": {
"provider": "simulated",
"providerId": "kvt7gvsfwkqoa2wikma5btvdz3lnqkot"
},
"opParams": {
"zoneType": "ValidParking",
"maxDurationMinutes": 268
},
"ancestor": [
{
"entityId": "Simulated__DEVNET002__spacezBell001",
"entityType": "ParkingSpace"
}
],
"hierId": "parking_hierarchy_sid",
"thirdPartyId": "pspotzBell002n010",
"parent": {
"entityType": "ParkingSpace",
"entityId": "Simulated__DEVNET002__spacezBell001"
},
"state": {
"reliability": 100,
"occupied": true
},
"sensorCustomerId": "SDPCustomer_500050",
"parkingSpaceId": "Simulated__DEVNET002__spacezBell001",
"lastUpdated": "2016-12-20T14:52:51.922Z",
"geocoordinates": {
"longitude": -113.6211135,
"latitude": 53.52278235
},
"label": "PTBell002_010"
}
},
{
"ParkingSpot": {
"sid": "Simulated__DEVNET002__pspotzBell002n011",
"providerDetails": {
"provider": "simulated",
"providerId": "kvt7gvsfwkqoa2wikma5btvdz3lnqkot"
},
"opParams": {
"zoneType": "ValidParking",
"maxDurationMinutes": 289
},
"ancestor": [
{
"entityId": "Simulated__DEVNET002__spacezBell001",
"entityType": "ParkingSpace"
}
],
"hierId": "parking_hierarchy_sid",
"thirdPartyId": "pspotzBell002n011",
"parent": {
"entityType": "ParkingSpace",
"entityId": "Simulated__DEVNET002__spacezBell001"
},
"state": {
"reliability": 100,
"occupied": false
},
"sensorCustomerId": "SDPCustomer_500050",
"parkingSpaceId": "Simulated__DEVNET002__spacezBell001",
"lastUpdated": "2016-12-20T14:52:51.922Z",
"geocoordinates": {
"longitude": -113.6254184,
"latitude": 53.52263608
},
"label": "PTBell002_011"
}
},
{
"ParkingSpot": {
"sid": "Simulated__DEVNET002__pspotzBell002n012",
"providerDetails": {
"provider": "simulated",
"providerId": "kvt7gvsfwkqoa2wikma5btvdz3lnqkot"
},
"opParams": {
"zoneType": "ValidParking",
"maxDurationMinutes": 271
},
"ancestor": [
{
"entityId": "Simulated__DEVNET002__spacezBell001",
"entityType": "ParkingSpace"
}
],
"hierId": "parking_hierarchy_sid",
"thirdPartyId": "pspotzBell002n012",
"parent": {
"entityType": "ParkingSpace",
"entityId": "Simulated__DEVNET002__spacezBell001"
},
"state": {
"reliability": 100,
"occupied": true
},
"sensorCustomerId": "SDPCustomer_500050",
"parkingSpaceId": "Simulated__DEVNET002__spacezBell001",
"lastUpdated": "2016-12-20T14:52:51.922Z",
"geocoordinates": {
"longitude": -113.6206991,
"latitude": 53.52452329
},
"label": "PTBell002_012"
}
},
{
"ParkingSpot": {
"sid": "Simulated__DEVNET002__pspotzBell002n013",
"providerDetails": {
"provider": "simulated",
"providerId": "kvt7gvsfwkqoa2wikma5btvdz3lnqkot"
},
"opParams": {
"zoneType": "ValidParking",
"maxDurationMinutes": 253
},
"ancestor": [
{
"entityId": "Simulated__DEVNET002__spacezBell001",
"entityType": "ParkingSpace"
}
],
"hierId": "parking_hierarchy_sid",
"thirdPartyId": "pspotzBell002n013",
"parent": {
"entityType": "ParkingSpace",
"entityId": "Simulated__DEVNET002__spacezBell001"
},
"state": {
"reliability": 100,
"occupied": false
},
"sensorCustomerId": "SDPCustomer_500050",
"parkingSpaceId": "Simulated__DEVNET002__spacezBell001",
"lastUpdated": "2016-12-20T14:52:51.922Z",
"geocoordinates": {
"longitude": -113.6224653,
"latitude": 53.52324916
},
"label": "PTBell002_013"
}
},
{
"ParkingSpot": {
"sid": "Simulated__DEVNET002__pspotzBell002n014",
"providerDetails": {
"provider": "simulated",
"providerId": "kvt7gvsfwkqoa2wikma5btvdz3lnqkot"
},
"opParams": {
"zoneType": "ValidParking",
"maxDurationMinutes": 298
},
"ancestor": [
{
"entityId": "Simulated__DEVNET002__spacezBell001",
"entityType": "ParkingSpace"
}
],
"hierId": "parking_hierarchy_sid",
"thirdPartyId": "pspotzBell002n014",
"parent": {
"entityType": "ParkingSpace",
"entityId": "Simulated__DEVNET002__spacezBell001"
},
"state": {
"reliability": 100,
"occupied": false
},
"sensorCustomerId": "SDPCustomer_500050",
"parkingSpaceId": "Simulated__DEVNET002__spacezBell001",
"lastUpdated": "2016-12-20T14:52:51.922Z",
"geocoordinates": {
"longitude": -113.626331,
"latitude": 53.52531806
},
"label": "PTBell002_014"
}
},
{
"ParkingSpot": {
"sid": "Simulated__DEVNET002__pspotzBell002n015",
"providerDetails": {
"provider": "simulated",
"providerId": "kvt7gvsfwkqoa2wikma5btvdz3lnqkot"
},
"opParams": {
"zoneType": "ValidParking",
"maxDurationMinutes": 284
},
"ancestor": [
{
"entityId": "Simulated__DEVNET002__spacezBell001",
"entityType": "ParkingSpace"
}
],
"hierId": "parking_hierarchy_sid",
"thirdPartyId": "pspotzBell002n015",
"parent": {
"entityType": "ParkingSpace",
"entityId": "Simulated__DEVNET002__spacezBell001"
},
"state": {
"reliability": 100,
"occupied": false
},
"sensorCustomerId": "SDPCustomer_500050",
"parkingSpaceId": "Simulated__DEVNET002__spacezBell001",
"lastUpdated": "2016-12-20T14:52:51.922Z",
"geocoordinates": {
"longitude": -113.6226714,
"latitude": 53.52214154
},
"label": "PTBell002_015"
}
},
{
"ParkingSpot": {
"sid": "Simulated__DEVNET002__pspotzBell002n016",
"providerDetails": {
"provider": "simulated",
"providerId": "kvt7gvsfwkqoa2wikma5btvdz3lnqkot"
},
"opParams": {
"zoneType": "ValidParking",
"maxDurationMinutes": 261
},
"ancestor": [
{
"entityId": "Simulated__DEVNET002__spacezBell001",
"entityType": "ParkingSpace"
}
],
"hierId": "parking_hierarchy_sid",
"thirdPartyId": "pspotzBell002n016",
"parent": {
"entityType": "ParkingSpace",
"entityId": "Simulated__DEVNET002__spacezBell001"
},
"state": {
"reliability": 100,
"occupied": false
},
"sensorCustomerId": "SDPCustomer_500050",
"parkingSpaceId": "Simulated__DEVNET002__spacezBell001",
"lastUpdated": "2016-12-20T14:52:51.922Z",
"geocoordinates": {
"longitude": -113.62743,
"latitude": 53.52485486
},
"label": "PTBell002_016"
}
},
{
"ParkingSpot": {
"sid": "Simulated__DEVNET002__pspotzBell002n017",
"providerDetails": {
"provider": "simulated",
"providerId": "kvt7gvsfwkqoa2wikma5btvdz3lnqkot"
},
"opParams": {
"zoneType": "ValidParking",
"maxDurationMinutes": 258
},
"ancestor": [
{
"entityId": "Simulated__DEVNET002__spacezBell001",
"entityType": "ParkingSpace"
}
],
"hierId": "parking_hierarchy_sid",
"thirdPartyId": "pspotzBell002n017",
"parent": {
"entityType": "ParkingSpace",
"entityId": "Simulated__DEVNET002__spacezBell001"
},
"state": {
"reliability": 100,
"occupied": true
},
"sensorCustomerId": "SDPCustomer_500050",
"parkingSpaceId": "Simulated__DEVNET002__spacezBell001",
"lastUpdated": "2016-12-20T14:52:51.922Z",
"geocoordinates": {
"longitude": -113.625498,
"latitude": 53.52288652
},
"label": "PTBell002_017"
}
},
{
"ParkingSpot": {
"sid": "Simulated__DEVNET002__pspotzBell002n018",
"providerDetails": {
"provider": "simulated",
"providerId": "kvt7gvsfwkqoa2wikma5btvdz3lnqkot"
},
"opParams": {
"zoneType": "ValidParking",
"maxDurationMinutes": 281
},
"ancestor": [
{
"entityId": "Simulated__DEVNET002__spacezBell001",
"entityType": "ParkingSpace"
}
],
"hierId": "parking_hierarchy_sid",
"thirdPartyId": "pspotzBell002n018",
"parent": {
"entityType": "ParkingSpace",
"entityId": "Simulated__DEVNET002__spacezBell001"
},
"state": {
"reliability": 100,
"occupied": false
},
"sensorCustomerId": "SDPCustomer_500050",
"parkingSpaceId": "Simulated__DEVNET002__spacezBell001",
"lastUpdated": "2016-12-20T14:52:51.922Z",
"geocoordinates": {
"longitude": -113.6244225,
"latitude": 53.5219199
},
"label": "PTBell002_018"
}
},
{
"ParkingSpot": {
"sid": "Simulated__DEVNET002__pspotzBell002n019",
"providerDetails": {
"provider": "simulated",
"providerId": "kvt7gvsfwkqoa2wikma5btvdz3lnqkot"
},
"opParams": {
"zoneType": "ValidParking",
"maxDurationMinutes": 270
},
"ancestor": [
{
"entityId": "Simulated__DEVNET002__spacezBell001",
"entityType": "ParkingSpace"
}
],
"hierId": "parking_hierarchy_sid",
"thirdPartyId": "pspotzBell002n019",
"parent": {
"entityType": "ParkingSpace",
"entityId": "Simulated__DEVNET002__spacezBell001"
},
"state": {
"reliability": 100,
"occupied": false
},
"sensorCustomerId": "SDPCustomer_500050",
"parkingSpaceId": "Simulated__DEVNET002__spacezBell001",
"lastUpdated": "2016-12-20T14:52:51.922Z",
"geocoordinates": {
"longitude": -113.6212564,
"latitude": 53.52544591
},
"label": "PTBell002_019"
}
},
{
"ParkingSpot": {
"sid": "Simulated__DEVNET002__pspotzBell002n020",
"providerDetails": {
"provider": "simulated",
"providerId": "kvt7gvsfwkqoa2wikma5btvdz3lnqkot"
},
"opParams": {
"zoneType": "ValidParking",
"maxDurationMinutes": 274
},
"ancestor": [
{
"entityId": "Simulated__DEVNET002__spacezBell001",
"entityType": "ParkingSpace"
}
],
"hierId": "parking_hierarchy_sid",
"thirdPartyId": "pspotzBell002n020",
"parent": {
"entityType": "ParkingSpace",
"entityId": "Simulated__DEVNET002__spacezBell001"
},
"state": {
"reliability": 100,
"occupied": false
},
"sensorCustomerId": "SDPCustomer_500050",
"parkingSpaceId": "Simulated__DEVNET002__spacezBell001",
"lastUpdated": "2016-12-20T14:52:51.922Z",
"geocoordinates": {
"longitude": -113.6212883,
"latitude": 53.52500345
},
"label": "PTBell002_020"
}
},
{
"ParkingSpot": {
"sid": "Simulated__DEVNET002__pspotzBell002n021",
"providerDetails": {
"provider": "simulated",
"providerId": "kvt7gvsfwkqoa2wikma5btvdz3lnqkot"
},
"opParams": {
"zoneType": "ValidParking",
"maxDurationMinutes": 282
},
"ancestor": [
{
"entityId": "Simulated__DEVNET002__spacezBell001",
"entityType": "ParkingSpace"
}
],
"hierId": "parking_hierarchy_sid",
"thirdPartyId": "pspotzBell002n021",
"parent": {
"entityType": "ParkingSpace",
"entityId": "Simulated__DEVNET002__spacezBell001"
},
"state": {
"reliability": 100,
"occupied": false
},
"sensorCustomerId": "SDPCustomer_500050",
"parkingSpaceId": "Simulated__DEVNET002__spacezBell001",
"lastUpdated": "2016-12-20T14:52:51.922Z",
"geocoordinates": {
"longitude": -113.6212967,
"latitude": 53.52422456
},
"label": "PTBell002_021"
}
},
{
"ParkingSpot": {
"sid": "Simulated__DEVNET002__pspotzBell002n022",
"providerDetails": {
"provider": "simulated",
"providerId": "kvt7gvsfwkqoa2wikma5btvdz3lnqkot"
},
"opParams": {
"zoneType": "ValidParking",
"maxDurationMinutes": 291
},
"ancestor": [
{
"entityId": "Simulated__DEVNET002__spacezBell001",
"entityType": "ParkingSpace"
}
],
"hierId": "parking_hierarchy_sid",
"thirdPartyId": "pspotzBell002n022",
"parent": {
"entityType": "ParkingSpace",
"entityId": "Simulated__DEVNET002__spacezBell001"
},
"state": {
"reliability": 100,
"occupied": true
},
"sensorCustomerId": "SDPCustomer_500050",
"parkingSpaceId": "Simulated__DEVNET002__spacezBell001",
"lastUpdated": "2016-12-20T14:52:51.922Z",
"geocoordinates": {
"longitude": -113.6268308,
"latitude": 53.52553057
},
"label": "PTBell002_022"
}
},
{
"ParkingSpot": {
"sid": "Simulated__DEVNET002__pspotzBell002n023",
"providerDetails": {
"provider": "simulated",
"providerId": "kvt7gvsfwkqoa2wikma5btvdz3lnqkot"
},
"opParams": {
"zoneType": "ValidParking",
"maxDurationMinutes": 272
},
"ancestor": [
{
"entityId": "Simulated__DEVNET002__spacezBell001",
"entityType": "ParkingSpace"
}
],
"hierId": "parking_hierarchy_sid",
"thirdPartyId": "pspotzBell002n023",
"parent": {
"entityType": "ParkingSpace",
"entityId": "Simulated__DEVNET002__spacezBell001"
},
"state": {
"reliability": 100,
"occupied": true
},
"sensorCustomerId": "SDPCustomer_500050",
"parkingSpaceId": "Simulated__DEVNET002__spacezBell001",
"lastUpdated": "2016-12-20T14:52:51.922Z",
"geocoordinates": {
"longitude": -113.6228927,
"latitude": 53.52606006
},
"label": "PTBell002_023"
}
},
{
"ParkingSpot": {
"sid": "Simulated__DEVNET002__pspotzBell002n024",
"providerDetails": {
"provider": "simulated",
"providerId": "kvt7gvsfwkqoa2wikma5btvdz3lnqkot"
},
"opParams": {
"zoneType": "ValidParking",
"maxDurationMinutes": 280
},
"ancestor": [
{
"entityId": "Simulated__DEVNET002__spacezBell001",
"entityType": "ParkingSpace"
}
],
"hierId": "parking_hierarchy_sid",
"thirdPartyId": "pspotzBell002n024",
"parent": {
"entityType": "ParkingSpace",
"entityId": "Simulated__DEVNET002__spacezBell001"
},
"state": {
"reliability": 100,
"occupied": false
},
"sensorCustomerId": "SDPCustomer_500050",
"parkingSpaceId": "Simulated__DEVNET002__spacezBell001",
"lastUpdated": "2016-12-20T14:52:51.922Z",
"geocoordinates": {
"longitude": -113.6248202,
"latitude": 53.52481767
},
"label": "PTBell002_024"
}
},
{
"ParkingSpot": {
"sid": "Simulated__DEVNET002__pspotzBell002n025",
"providerDetails": {
"provider": "simulated",
"providerId": "kvt7gvsfwkqoa2wikma5btvdz3lnqkot"
},
"opParams": {
"zoneType": "ValidParking",
"maxDurationMinutes": 278
},
"ancestor": [
{
"entityId": "Simulated__DEVNET002__spacezBell001",
"entityType": "ParkingSpace"
}
],
"hierId": "parking_hierarchy_sid",
"thirdPartyId": "pspotzBell002n025",
"parent": {
"entityType": "ParkingSpace",
"entityId": "Simulated__DEVNET002__spacezBell001"
},
"state": {
"reliability": 100,
"occupied": true
},
"sensorCustomerId": "SDPCustomer_500050",
"parkingSpaceId": "Simulated__DEVNET002__spacezBell001",
"lastUpdated": "2016-12-20T14:52:51.922Z",
"geocoordinates": {
"longitude": -113.6205972,
"latitude": 53.5233195
},
"label": "PTBell002_025"
}
},
{
"ParkingSpot": {
"sid": "Simulated__DEVNET002__pspotzBell002n026",
"providerDetails": {
"provider": "simulated",
"providerId": "kvt7gvsfwkqoa2wikma5btvdz3lnqkot"
},
"opParams": {
"zoneType": "ValidParking",
"maxDurationMinutes": 284
},
"ancestor": [
{
"entityId": "Simulated__DEVNET002__spacezBell001",
"entityType": "ParkingSpace"
}
],
"hierId": "parking_hierarchy_sid",
"thirdPartyId": "pspotzBell002n026",
"parent": {
"entityType": "ParkingSpace",
"entityId": "Simulated__DEVNET002__spacezBell001"
},
"state": {
"reliability": 100,
"occupied": true
},
"sensorCustomerId": "SDPCustomer_500050",
"parkingSpaceId": "Simulated__DEVNET002__spacezBell001",
"lastUpdated": "2016-12-20T14:52:51.922Z",
"geocoordinates": {
"longitude": -113.6221342,
"latitude": 53.52472001
},
"label": "PTBell002_026"
}
},
{
"ParkingSpot": {
"sid": "Simulated__DEVNET002__pspotzBell002n027",
"providerDetails": {
"provider": "simulated",
"providerId": "kvt7gvsfwkqoa2wikma5btvdz3lnqkot"
},
"opParams": {
"zoneType": "ValidParking",
"maxDurationMinutes": 287
},
"ancestor": [
{
"entityId": "Simulated__DEVNET002__spacezBell001",
"entityType": "ParkingSpace"
}
],
"hierId": "parking_hierarchy_sid",
"thirdPartyId": "pspotzBell002n027",
"parent": {
"entityType": "ParkingSpace",
"entityId": "Simulated__DEVNET002__spacezBell001"
},
"state": {
"reliability": 100,
"occupied": true
},
"sensorCustomerId": "SDPCustomer_500050",
"parkingSpaceId": "Simulated__DEVNET002__spacezBell001",
"lastUpdated": "2016-12-20T14:52:51.922Z",
"geocoordinates": {
"longitude": -113.6238217,
"latitude": 53.52642643
},
"label": "PTBell002_027"
}
},
{
"ParkingSpot": {
"sid": "Simulated__DEVNET002__pspotzBell002n028",
"providerDetails": {
"provider": "simulated",
"providerId": "kvt7gvsfwkqoa2wikma5btvdz3lnqkot"
},
"opParams": {
"zoneType": "ValidParking",
"maxDurationMinutes": 280
},
"ancestor": [
{
"entityId": "Simulated__DEVNET002__spacezBell001",
"entityType": "ParkingSpace"
}
],
"hierId": "parking_hierarchy_sid",
"thirdPartyId": "pspotzBell002n028",
"parent": {
"entityType": "ParkingSpace",
"entityId": "Simulated__DEVNET002__spacezBell001"
},
"state": {
"reliability": 100,
"occupied": true
},
"sensorCustomerId": "SDPCustomer_500050",
"parkingSpaceId": "Simulated__DEVNET002__spacezBell001",
"lastUpdated": "2016-12-20T14:52:51.922Z",
"geocoordinates": {
"longitude": -113.6213668,
"latitude": 53.52603811
},
"label": "PTBell002_028"
}
},
{
"ParkingSpot": {
"sid": "Simulated__DEVNET002__pspotzBell002n029",
"providerDetails": {
"provider": "simulated",
"providerId": "kvt7gvsfwkqoa2wikma5btvdz3lnqkot"
},
"opParams": {
"zoneType": "ValidParking",
"maxDurationMinutes": 287
},
"ancestor": [
{
"entityId": "Simulated__DEVNET002__spacezBell001",
"entityType": "ParkingSpace"
}
],
"hierId": "parking_hierarchy_sid",
"thirdPartyId": "pspotzBell002n029",
"parent": {
"entityType": "ParkingSpace",
"entityId": "Simulated__DEVNET002__spacezBell001"
},
"state": {
"reliability": 100,
"occupied": true
},
"sensorCustomerId": "SDPCustomer_500050",
"parkingSpaceId": "Simulated__DEVNET002__spacezBell001",
"lastUpdated": "2016-12-20T14:52:51.922Z",
"geocoordinates": {
"longitude": -113.6246355,
"latitude": 53.52301965
},
"label": "PTBell002_029"
}
},
{
"ParkingSpot": {
"sid": "Simulated__DEVNET002__pspotzBell002n030",
"providerDetails": {
"provider": "simulated",
"providerId": "kvt7gvsfwkqoa2wikma5btvdz3lnqkot"
},
"opParams": {
"zoneType": "ValidParking",
"maxDurationMinutes": 251
},
"ancestor": [
{
"entityId": "Simulated__DEVNET002__spacezBell001",
"entityType": "ParkingSpace"
}
],
"hierId": "parking_hierarchy_sid",
"thirdPartyId": "pspotzBell002n030",
"parent": {
"entityType": "ParkingSpace",
"entityId": "Simulated__DEVNET002__spacezBell001"
},
"state": {
"reliability": 100,
"occupied": true
},
"sensorCustomerId": "SDPCustomer_500050",
"parkingSpaceId": "Simulated__DEVNET002__spacezBell001",
"lastUpdated": "2016-12-20T14:52:51.922Z",
"geocoordinates": {
"longitude": -113.6224692,
"latitude": 53.52516859
},
"label": "PTBell002_030"
}
}
]
}
}
\ No newline at end of file
......@@ -7,6 +7,7 @@ import com.fasterxml.jackson.databind.node.NullNode;
import com.fasterxml.jackson.databind.node.ObjectNode;
import com.google.gdata.util.common.base.PercentEscaper;
import com.google.gdata.util.common.util.Base64;
import com.google.gson.JsonNull;
import http.simpleHttpClient.SimpleHttpClient;
import http.simpleHttpClient.SimpleHttpRequest;
import http.simpleHttpClient.SimpleHttpResponse;
......@@ -227,13 +228,35 @@ public class CiscoManager {
private BaseRestResponse reLogin(LoginInfo loginInfo) {
return null;
}
private BaseRestResponse getTrafficLanes() {
return null;
SimpleHttpRequest req = null;
SimpleHttpResponse httpResp = null;
BaseRestResponse brr = new BaseRestResponse(true, null);
logger.info("cisco.getTrafficLanes() activated");
try {
// get parking
req = buildTrafficLanesRequest();
httpResp = httpClient.processRequest(req);
if(httpResp.getStatusCode() == 200)
brr = parseTrafficLanesResp(httpResp);
else {
logHttpError("getTrafficLanes", httpResp);
return errorHttpResponse(httpResp);
}
} catch (Exception e) {
String err = CISCO + ".getTrafficLanes() failed with exception. e=" + e.toString();
logger.error(err);
return errorResponse(err);
}
return brr;
}
......@@ -416,6 +439,103 @@ public class CiscoManager {
}
}
private SimpleHttpRequest buildTrafficLanesRequest() {
SimpleHttpRequest request = new SimpleHttpRequest();
request.setProtocol("https");
request.setDomain(CISCO_DOMAIN);
request.setProtocol("http");
request.setPort(80);
request.setMethod(SimpleHttpRequest.Method.POST);
// path
String path = API_URI + "devices/traffic";
request.setPath(path);
// query string
StringBuilder sb = new StringBuilder();
sb.append("UserKey=").append(loginInfo.userId).append("&")
.append("SensorCustomerKey=").append(loginInfo.parentUserId).append("&")
.append("AppKey=CDP-App");
String queryString = sb.toString();
request.setQueryString(queryString);
// content
String content = "{\"Query\":{\"Find\": {\"RoadSegment\": {}}}}";
request.setContent(content);
// headers
// WSO2-Authorization
String WSO2_Authorization = "oAuth Bearer " + loginInfo.appAccessToken;
request.addHeader("WSO2-Authorization", WSO2_Authorization);
// Authorization
String Authorization = "Bearer " + loginInfo.apiAccessToken;
request.addHeader("Authorization", Authorization);
// accept
String Accept = "application/json";
request.addHeader("Accept", Accept);
// Content-Type
String Content_Type = "application/json";
request.addHeader("Content-Type", Content_Type);
return request;
}
private BaseRestResponse parseTrafficLanesResp(SimpleHttpResponse httpResp) {
try {
JsonNode contentObj = objMapper.readTree(httpResp.getContent());
ArrayNode csTrafficLanes = (ArrayNode)contentObj.at("/Find/Result");
ArrayNode trafficLanesResult = objMapper.createArrayNode();
for (JsonNode csTrafficLane: csTrafficLanes) {
ObjectNode objTrafficLane = objMapper.createObjectNode();
// location uid
objTrafficLane.put("location-uid", csTrafficLane.at("/RoadSegment/sid").asText());
// coordinates
JsonNode csCoordinates = csTrafficLane.at("/ParkingSpot/geocoordinates");
String p1Loc = "0" + "," + "0";
ObjectNode p1 = objMapper.createObjectNode();
p1.put("P1", p1Loc);
objTrafficLane.put("coordinates", p1);
// properties
ObjectNode properties = objMapper.createObjectNode();
// vehicleType
properties.putNull("vehicleType");
// measures
ArrayNode arrayMeasures = objMapper.createArrayNode();
// measure/speed
ObjectNode measureSpeed = objMapper.createObjectNode();
measureSpeed.put("tag", "speed");
measureSpeed.put("value", csTrafficLane.at("/RoadSegment/refSpeed").asDouble());
measureSpeed.put("unit", "MPS");
arrayMeasures.add(measureSpeed);
// measure/vehicleCount
ObjectNode measureVehicleCount = objMapper.createObjectNode();
measureVehicleCount.put("tag", "vehicleCount");
measureVehicleCount.put("value", 20);
measureVehicleCount.put("unit", "");
arrayMeasures.add(measureVehicleCount);
properties.set("measures", arrayMeasures);
// timestamp
properties.put("timestamp", 0);
// mde-key
properties.put("mde-key", csTrafficLane.at("/RoadSegment/sid").asText());
objTrafficLane.set("properties", properties);
trafficLanesResult.add(objTrafficLane);
}
logger.info("parseTrafficLanesResp() - found " + trafficLanesResult.size() + " traffic lanes. tenant=" + CISCO);
return successResponse(trafficLanesResult);
} catch (Exception e) {
String err = "parseUserInfoResp failed with exception. e: " + e.toString();
return errorResponse(err);
}
}
private Boolean parseLoginRequestParameters(RequestContext requestContext) {
......@@ -492,8 +612,9 @@ public class CiscoManager {
private Boolean isAccessDenied(BaseRestResponse brr) {
if (brr.success == false) {
int statusCode = brr.objectNode.get("statusCode").asInt();
Boolean bAccessDenied = (statusCode == 403 ||statusCode == 401);
//int statusCode = brr.objectNode.get("statusCode").asInt();
//Boolean bAccessDenied = (statusCode == 403 ||statusCode == 401);
Boolean bAccessDenied = true;
return bAccessDenied;
}
else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment