Speed & direction info?

Post your questions and help other users.

Moderator: Martin

Post Reply
User avatar
jassing
Posts: 94
Joined: 16 Jul 2017 01:42
Location: SF Bay Area

Speed & direction info?

Post by jassing » 19 Nov 2019 04:24

Is it possible to obtain heading and/or speed information? I tried searching the forums & for a plug in?

Micky Micky
Posts: 179
Joined: 16 Oct 2019 17:38

Re: Speed & direction info?

Post by Micky Micky » 20 Nov 2019 19:48

Action: Init variable location

location_bearing
the direction of travel in degrees East of true North when available (not available on all devices)
location_speed
the speed of travel in meters per second when available (not available on all devices)

mph = "{(location_speed*2.237),numberformat,0}";
Crude but it works.

User avatar
jassing
Posts: 94
Joined: 16 Jul 2017 01:42
Location: SF Bay Area

Re: Speed & direction info?

Post by jassing » 24 Nov 2019 03:26

Thought there was a way to get compass heading. At low speed, the GPS bearing seems unreliable.

Thanks.

Micky Micky
Posts: 179
Joined: 16 Oct 2019 17:38

Re: Speed & direction info?

Post by Micky Micky » 16 Dec 2019 10:49

Trigger COMPASS might be the answer.
I've never used it.
Crude but it works.

User avatar
jassing
Posts: 94
Joined: 16 Jul 2017 01:42
Location: SF Bay Area

Re: Speed & direction info?

Post by jassing » 16 Dec 2019 13:57

Problems....

1 I don't need a trigger, there is no access to a compass in code, only a trigger

2 on my device, the trigger doesn't fire... Until I launch some other compass app...

Micky Micky
Posts: 179
Joined: 16 Oct 2019 17:38

Re: Speed & direction info?

Post by Micky Micky » 16 Dec 2019 15:11

Action: Init variables device orientation

"Compass functionality in phones and tablets is enabled by something a bit more sophisticated – a sensor called a magnetometer, which is used to measure the strength and direction of magnetic fields. By analyzing Earth's magnetic field, the sensor allows a phone to determine its orientation pretty accurately. "
Crude but it works.

Post Reply