Measure/Calculate miles traveled

65 views
Skip to first unread message

Kirk McCann

unread,
May 1, 2014, 12:51:19 PM5/1/14
to tas...@googlegroups.com
I am trying to find a way to compute the number of miles traveled.

I can get the location that I start and end using %LOC but I dont know how to determine miles based on route traveled.

I do have google track my location and I have the AutoLocation app.

Any ideas would be great.

Thanks,
Kirk

Brandon Horwath

unread,
May 1, 2014, 1:01:05 PM5/1/14
to tas...@googlegroups.com
Any ideas would be great.

Use the vehicles odometer?

Kirk D Mccann

unread,
May 1, 2014, 2:08:58 PM5/1/14
to tas...@googlegroups.com
LOL yea but I'm so bad about that.  So I figure automation is the way to go.

-Kirk

Thanks and Have a Good Day,
Kirk McCann


On Thu, May 1, 2014 at 12:01 PM, Brandon Horwath <brandon...@gmail.com> wrote:
Any ideas would be great.

Use the vehicles odometer?

--
You received this message because you are subscribed to a topic in the Google Groups "Tasker" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tasker/uBnxYUqsGqc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tasker+un...@googlegroups.com.
Visit this group at http://groups.google.com/group/tasker.
For more options, visit https://groups.google.com/d/optout.

Scott

unread,
May 1, 2014, 2:58:49 PM5/1/14
to tas...@googlegroups.com
Here's one way to do it with AutoLocation:

Have 5 variables, distance traveled, previous lat, previous long, current lat and current long.  

Start a one time location monitor to get your starting point and once you get it store it in the "previous" variables.  You'll need some way to trigger a task to do this, a profile that watches for when you get the AutoLocation Location with the same name as you gave the monitor and a task to save the location to those two variables, zero out the distance traveled and start a new monitor.

That new monitor with a different name and some interval (faster will be more accurate and battery intensive, slower will be less accurate and battery intensive) will track where you go.  Each time you get your location, use the AutoLocation Info action to get the distance between your current location and your previous location and add it to your distance traveled.  When you stop the monitor (you'll have to find some way to trigger this), convert the distance traveled to whatever unit you want.

Scott

unread,
May 1, 2014, 3:02:00 PM5/1/14
to tas...@googlegroups.com
I forgot to say that when you get your new location, find the distance between it and your previous location and then add that to your distance traveled, you'll also set your previous lat and long to your current lat and long.
Reply all
Reply to author
Forward
0 new messages