Pereiti prie pagrindinio turinio

is there an order in geotab api that allows blocking a vehicle?

MRako-1814
Originalus plakatas

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.

 

 

Prisijunkite prie pokalbio

You need to be logged in to reply to this post and participate in the Geotab Community discussions.

8 Replies

Hey @MRako-1814​,

 

Can you clarify what you mean by "blocking" a vehicle please?

 

Thanks,

Tucker

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.

 

image 

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?

EishiFUN
Bendruomenės administratorius

By this do you mean disabling the use of the vehicle? Like with a started inhibitor or something?

MRako-1814
Originalus plakatas

@EishiFUN​ 

yes,it mean disabling the use of the vehicle,

I was told that it can be done with the TextMessage entity?

can anyone help me?

EishiFUN
Bendruomenės administratorius

No I do not believe this would be possible with the method you are describing.

MRako-1814
Originalus plakatas

@EishiFUN​ 

Thank you for your response. So is there a way to turn on or off the engine of a vehicle with an api call?

EishiFUN
Bendruomenės administratorius

No, none that I am aware of.

Vis dar turite klausimų?