Commute time Map tile generator

Hey, thanks for making this. Running into some trouble. For some reason I am getting a “No result” when generating the key. The lat/lon is correct. Here is what I am using (API key removed):

I created an API using the Distance Matrix Api. It made me create an 0Auth consent Screen (maybe that is what went wrong?). There are no errors showing with the API. Only error I see is that the key is unrestricted. Any help would be greatly appreciated.

https://img.shields.io/badge/dynamic/json?label=Work+Travel+Time&color=ff69b4&style=%3Fstyle%3Dfor-the-badge%26logo%3Dappveyor&url=https%3A%2F%2Fmaps.googleapis.com%2Fmaps%2Fapi%2Fdistancematrix%2Fjson%3Forigins%3D38.52236367932236--88.83792366775377%26destinations%3D38.43985943289871--88.94284926005085%26key%xxxxxxxxx%26departure_time%3Dnow%26mode%3Ddriving%26units%3Dimperial&query=%24.rows[0].elements[0].duration_in_traffic.text

If you plug your coordinates manually into Google Maps and try to get directions from Start to Finish point you get this message
image
I think the coordinates just aren’t driveable.

Thanks for the response. Maybe I’m grabbing the lat and long wrong? It is for sure drive able as we drive it everyday. So I must be doing something wrong :pensive:

I think you did the same thing as me. You need to put the whole URL in.
https://www.google.com/maps/place/$PLACE_NAME/lat,long
So for your destination, you would have
https://www.google.com/maps/place/102+S+Marshall+St,+Dix,+IL+62830,+USA/@38.4777858,-88.9314554

@Tedis_Agolli This is a brilliant utility. Thank you

2 Likes

That did the trick! Thanks! Love this community

2 Likes

Hello guys!

Is this still works?
I made an API key, and filled the generator, but it shows me 1 minute for the trip.

Thanks
Andrew

@Andras_Derzsy, welcome to the community, I just tested and it seems @Tedis_Agolli’s generator is still working for me.

Thank you!

I checked your screenshot, and i see i wrote the lat, long wrong, so now it is working :slight_smile:
Thanks!

One more thing:
Can we make two or three different label inside of one icon in the dashboard?
I made a preview in photoshop to show what i am talking about:
Untitled-1

Not directly, but you may be interested in checking out Custom Tile, which allows you to create a custom tile to include multiple commute time images in it. ( Some basic HTML syntax knowledge will be needed.)