# Traveltime with Google Maps

**URL:** <https://community.homey.app/t/traveltime-with-google-maps/1744>\
**Category:** Questions & Help\
**Created:** [September 16, 2018, 7:59am UTC](https://community.homey.app/t/traveltime-with-google-maps/1744 "2018-09-16T07:59:12Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gertjan\_Hendriks](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/gertjan_hendriks/32/11183_2.png) [@Gertjan\_Hendriks](https://community.homey.app/u/Gertjan_Hendriks)\
**Post date:** [September 16, 2018, 7:59am UTC](https://community.homey.app/t/traveltime-with-google-maps/1744/1 "2018-09-16T07:59:13Z")

</div>

Morning,

Does anyone have a good flow for: at 06:00 hours a push notification about the travel time to work with Google Maps?

Would you like to share it then? Do you use a free API key here?

Tx!

---

<div class="post-metadata">

**Author:** ![viix](https://avatars.discourse-cdn.com/v4/letter/v/4af34b/32.png) [@viix](https://community.homey.app/u/viix)\
**Post date:** [September 17, 2018, 4:27pm UTC](https://community.homey.app/t/traveltime-with-google-maps/1744/2 "2018-09-17T16:27:41Z")

</div>

not too sure but i remember seeing some stringify flows (not related to homey flow). You could use that to push that info to u based on time or triggered via a flow to ifttt to stringify… could probably send a post request if its possible although i havenr git a good look at stringify yet…

> **[Traffic](https://search.stringify.com/things/5R5MNq9ceMMf8PelxQp9pIGKrYJx8gjG_1)**
>
> Use Stringify Traffic to determine optimal travel times and routes from any origin and destination. Schedule a time to check the traffic as a trigger or check it on demand as an action. Powered by Google.

---

<div class="post-metadata">

**Author:** ![Lamzak](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/lamzak/32/8734_2.png) [@Lamzak](https://community.homey.app/u/Lamzak)\
**Post date:** [September 17, 2018, 4:56pm UTC](https://community.homey.app/t/traveltime-with-google-maps/1744/3 "2018-09-17T16:56:39Z")

</div>

The google maps app seems to be able of doing that [https://apps.athom.com/app/com.google.maps.directions](https://apps.athom.com/app/com.google.maps.directions)

---

<div class="post-metadata">

**Author:** ![xooops](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/xooops/32/941_2.png) [@xooops](https://community.homey.app/u/xooops)\
**Post date:** [October 17, 2018, 7:28pm UTC](https://community.homey.app/t/traveltime-with-google-maps/1744/4 "2018-10-17T19:28:03Z")

</div>

Hello, I tired the google maps app. If I create a flow like this

 ![PNG](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/6/60d23c92f1a80d8a549a1b9aada9736c0f004180.jpeg)

Homey speaks at 06:00 and I get a 0 as a push message.

Why does homey speak?

thanks xooops

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [October 18, 2018, 6:01am UTC](https://community.homey.app/t/traveltime-with-google-maps/1744/5 "2018-10-18T06:01:34Z")

</div>

> [@xooops](#):
>
> Why does homey speak?

Because the Google Maps app is telling it to. Doesn’t look like you can turn that off.

---

<div class="post-metadata">

**Author:** ![xooops](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/xooops/32/941_2.png) [@xooops](https://community.homey.app/u/xooops)\
**Post date:** [October 18, 2018, 7:07pm UTC](https://community.homey.app/t/traveltime-with-google-maps/1744/6 "2018-10-18T19:07:33Z")

</div>

thanks, where?

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [October 18, 2018, 7:30pm UTC](https://community.homey.app/t/traveltime-with-google-maps/1744/7 "2018-10-18T19:30:34Z")

</div>

> [@xooops](#):
>
> thanks, where?

- [com.google.maps.directions/app.js at fe159444e6a688cb05e0ee0f35b31dcc5ae543f0 · alphabase/com.google.maps.directions · GitHub](https://github.com/alphabase/com.google.maps.directions/blob/fe159444e6a688cb05e0ee0f35b31dcc5ae543f0/app.js#L17)
- [com.google.maps.directions/app.js at fe159444e6a688cb05e0ee0f35b31dcc5ae543f0 · alphabase/com.google.maps.directions · GitHub](https://github.com/alphabase/com.google.maps.directions/blob/fe159444e6a688cb05e0ee0f35b31dcc5ae543f0/app.js#L27)
- [com.google.maps.directions/app.js at fe159444e6a688cb05e0ee0f35b31dcc5ae543f0 · alphabase/com.google.maps.directions · GitHub](https://github.com/alphabase/com.google.maps.directions/blob/fe159444e6a688cb05e0ee0f35b31dcc5ae543f0/app.js#L50)
- [com.google.maps.directions/app.js at fe159444e6a688cb05e0ee0f35b31dcc5ae543f0 · alphabase/com.google.maps.directions · GitHub](https://github.com/alphabase/com.google.maps.directions/blob/fe159444e6a688cb05e0ee0f35b31dcc5ae543f0/app.js#L65)  
[com.google.maps.directions/app.js at fe159444e6a688cb05e0ee0f35b31dcc5ae543f0 · alphabase/com.google.maps.directions · GitHub](https://github.com/alphabase/com.google.maps.directions/blob/fe159444e6a688cb05e0ee0f35b31dcc5ae543f0/app.js#L108)
- [com.google.maps.directions/app.js at fe159444e6a688cb05e0ee0f35b31dcc5ae543f0 · alphabase/com.google.maps.directions · GitHub](https://github.com/alphabase/com.google.maps.directions/blob/fe159444e6a688cb05e0ee0f35b31dcc5ae543f0/app.js#L114)

---

<div class="post-metadata">

**Author:** ![xooops](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/xooops/32/941_2.png) [@xooops](https://community.homey.app/u/xooops)\
**Post date:** [October 18, 2018, 8:35pm UTC](https://community.homey.app/t/traveltime-with-google-maps/1744/8 "2018-10-18T20:35:37Z")

</div>

Ah OK, I’m not a developer so I guess I’m struggling on that task. 🙂  
I’m juster wondering… I installed just the app from the app store. How can I edit the app.js on homey?

thanks a lot, xooops

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [October 18, 2018, 8:53pm UTC](https://community.homey.app/t/traveltime-with-google-maps/1744/9 "2018-10-18T20:53:45Z")

</div>

> [@xooops](#):
>
> I installed just the app from the app store. How can I edit the app.js on homey?

You can’t edit the file on Homey, but you can “clone” the Github repository (copying it to your local computer), edit the file, and use the [Athom command line interface tool](https://www.npmjs.com/package/athom-cli) to install the (modified) app on your Homey.

---

<div class="post-metadata">

**Author:** ![Jolink](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jolink/32/3559_2.png) [@Jolink](https://community.homey.app/u/Jolink)\
**Post date:** [November 23, 2018, 3:07pm UTC](https://community.homey.app/t/traveltime-with-google-maps/1744/10 "2018-11-23T15:07:32Z")

</div>

I tried the same flow and also get a 0 as a push message.  
Created an API key according to the instructions (incl. billing) but can’t see where it goed wrong. Any ideas?

---

<div class="post-metadata">

**Author:** ![matrover](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/matrover/32/12112_2.png) [@matrover](https://community.homey.app/u/matrover)\
**Post date:** [January 5, 2019, 12:53pm UTC](https://community.homey.app/t/traveltime-with-google-maps/1744/11 "2019-01-05T12:53:51Z")

</div>

The app is coded to speakup when using this function. if the work adress is set in the settings menu you can use the other cards (with tags) and then those tags will be filled.

---

<div class="post-metadata">

**Author:** ![matrover](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/matrover/32/12112_2.png) [@matrover](https://community.homey.app/u/matrover)\
**Post date:** [January 5, 2019, 1:00pm UTC](https://community.homey.app/t/traveltime-with-google-maps/1744/12 "2019-01-05T13:00:07Z")

</div>

ive made an feature request on github for this scenario.

> <https://github.com/alphabase/com.google.maps.directions/issues/5>

---

<div class="post-metadata">

**Author:** ![matrover](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/matrover/32/12112_2.png) [@matrover](https://community.homey.app/u/matrover)\
**Post date:** [January 15, 2019, 9:34pm UTC](https://community.homey.app/t/traveltime-with-google-maps/1744/13 "2019-01-15T21:34:23Z")

</div>

Hi Guys @xooops, @Gertjan_Hendriks, @Jolink

i solved this by using the [https://apps.athom.com/app/com.internet](https://apps.athom.com/app/com.internet) app and the get JSONpath Better logic card (also using the betterlogic app).  
 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/9/9a77ca65e79b81d96ef939e943e393d77eb05c48.png)  
First collum: [https://maps.googleapis.com/maps/api/directions/json?origin=CURRENTLOCATION&destination=DESTINATION&key=YOURAPIKEY](https://maps.googleapis.com/maps/api/directions/json?origin=CURRENTLOCATION&destination=DESTINATION&key=YOURAPIKEY)  
Second collum JSON PATH: routes[0].legs[0].distance.value (or duration: routes[0].legs[0].duration.value)  
thrid collum: bettelogic variable

the same api key from the google maps app can be used (created on: [https://cloud.google.com/maps-platform/?apis=maps](https://cloud.google.com/maps-platform/?apis=maps))

then i use the betterlogic app card “execute mathjs expression” to round the output (because you’ll get the kilometers in meters and minutes in seconds) with the “round(VARIABLE / 1000)” and store it in another beterlogic variable named KM2  
 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/d/d68e87039b2884259fa1ccbd463c384d980b4198.png)

the KM2 variable is then used in a push message to an mobile phone and / or in homey speech.

---

<div class="post-metadata">

**Author:** ![Jolink](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jolink/32/3559_2.png) [@Jolink](https://community.homey.app/u/Jolink)\
**Post date:** [January 16, 2019, 6:45pm UTC](https://community.homey.app/t/traveltime-with-google-maps/1744/14 "2019-01-16T18:45:49Z")

</div>

thnx…  
Tried creating the columns, think they work, but can’t seem to install the app Http app:  
 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/0/08bb7917498189d75a3e15cbca04b638aa3c489a.png)  
better logic app was already installed and I am on 1.5.13

---

<div class="post-metadata">

**Author:** ![matrover](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/matrover/32/12112_2.png) [@matrover](https://community.homey.app/u/matrover)\
**Post date:** [January 16, 2019, 7:05pm UTC](https://community.homey.app/t/traveltime-with-google-maps/1744/15 "2019-01-16T19:05:53Z")

</div>

Strange, im also on 1.5.13
