is there an order in geotab api that allows blocking a vehicle?
I did a bit of searching but couldn't find it.
Someone can help me.
is there an order in geotab api that allows blocking a vehicle?
I did a bit of searching but couldn't find it.
Someone can help me.
You need to be logged in to reply to this post and participate in the Geotab Community discussions.
I'm going to guess here that you are looking for a mechanism to enable or disable private mode for a device. If you are referencing "block" in another way we will need that clarified. It is not a known term for Geotab SDK purposes.
Doing so requires use of an undocumented entity called TripTypeChange. To use it you should know that there are only two values for "tripType" to use in TripTypeChange: "Private" (aka Personal Mode, trip data is not available), and "Unknown" (aka Business mode, trip data is available). Any TripTypeChange tripType stays in effect until changed again.
TripTypeChange is always available to Get() for a device, so you can see what mode it is in.
A call to Add(TripTypeChange) to turn on Personal Mode would look like the below, with tripType as "Private", where datetime should be the current UTC time. To change back to Business mode you would Add(TripTypeChange) again, with trip'Type set to "Unknown" and datetime as UTC time at the change.
Thanks,
Ken
@TuckerBA-1087 @KenWallenGeotabSeniorSolEng-1228
I thank for your response.
I mean by blocking, stopping a vehicle.
Is there a way to do this?