Skip to content

Commit

Permalink
Move geofenceIds from device to position (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
ludeeus authored Nov 3, 2023
1 parent 4dc2882 commit 3f9010e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
1 change: 0 additions & 1 deletion pytraccar/models/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,4 @@ class DeviceModel(TypedDict):
model: Optional[str]
contact: Optional[str]
category: Optional[str]
geofenceIds: Optional[list[int]]
attributes: dict[str, Any]
1 change: 1 addition & 0 deletions pytraccar/models/position.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ class PositionModel(TypedDict):
outdated: bool
valid: bool
latitude: float
geofenceIds: Optional[list[int]]
longitude: float
altitude: int
speed: int
Expand Down
3 changes: 0 additions & 3 deletions responses/devices.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@
"model": "string",
"contact": "string",
"category": "string",
"geofenceIds": [
0
],
"attributes": {}
}
]
3 changes: 3 additions & 0 deletions responses/positions.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
"altitude": 0,
"speed": 0,
"course": 0,
"geofenceIds": [
0
],
"address": "string",
"accuracy": 0,
"network": {},
Expand Down

0 comments on commit 3f9010e

Please sign in to comment.