Double ignitionOn events

Galant 9 years ago

Hey,
I'm using the Ulbotech device.
sometimes I get an ignitionOn event, one after the other, without an ignitionOff event between them.

One reason it happens is when two events see the lastPosition as the same one.
I think it occurs when two msgs come too fast one after the other, so the lastPosition in 'position' hash wasn't update yet.
does it make sense? what can I do to fix it?

Thank you very much!

Anton Tananaev 9 years ago

Are you using reverse geocoder by any chance?

Galant 9 years ago

how can I check that?

Geocoder lines in my config:

<entry key='geocoder.enable'>true</entry>
<entry key='geocoder.type'>google</entry>

thanks!

Anton Tananaev 9 years ago

As you can see, it's enabled. That's the problem. Reverse geocoder calls can take different amount of data, so it can mess up the order of positions.

Galant 9 years ago

Ok, I'll try canceling it and see if it helps.
Thank you

Galant 9 years ago

Does it mean that I won't see the address in Position anymore?
what else it will affect?
thanks!

Anton Tananaev 9 years ago

Nothing else. Just the address.