How to overlap trip route on google map?

  • 2
  • Question
  • Updated 5 months ago
How to export trip to google map?
Photo of Jacky Yau

Jacky Yau

  • 80 Points 75 badge 2x thumb

Posted 2 years ago

  • 2
Photo of Robert Reuscher

Robert Reuscher

  • 2,520 Points 2k badge 2x thumb
From what? The app? From the app you can tap on the map, and get a bigger one, or from the dashboard you can zoom into the drive segment. if you just want to get your trip on a map, you could probably create something with IFTTT, part of the information in the new trip completed trigger is trip url which is on google maps.
Photo of Amy

Amy

  • 68,970 Points 50k badge 2x thumb
Hi, Jacky. I don't have anything to add. :) Did Robert's suggestions help? If not, can you please clarify what it is you're wanting to do? Thanks.
Photo of John Ferrari

John Ferrari

  • 232 Points 100 badge 2x thumb
I think the OP wants to be able overlay a collection of lat/long coordinates on a Google map ... you can do that through the Google Maps API ... IF Automatic exports waypoint collections (which I haven't seen yet) ... the other option might be a KML file ....

All this stuff would make great enhancements to Automatic for the prosumer community and could open the door to third party developer products and collaborations
Photo of Jerry

Jerry, Co-founder

  • 2,438 Points 2k badge 2x thumb
Here's some information on how to overlay lat/lng coordinates on a Google map using the path field.
https://developers.google.com/maps/documentation/utilities/polylinealgorithm
at the bottom of that page you'll find links to github to download code that implements that algorithm.

You can test how any path looks here: https://developers.google.com/maps/documentation/utilities/polylineutility
Photo of Michael Leonard

Michael Leonard

  • 420 Points 250 badge 2x thumb
I logged the GPS coordinates using OBD Fusion and then it was easy to import them into Google Maps. There was a clickable icon on the map that displayed all of the log data for that point. OBD Fusion logs about every second. When importing you can choose which item from the log file to use as point name and which item to use as a label, for example speed or seconds, or distance.
Photo of Justin Rodino

Justin Rodino

  • 820 Points 500 badge 2x thumb
If you go to the dashboard, you can choose to export trip information, which will have a "path" column. It looks like gobble-de-gook but it's actually encoded Lat/Lon information. If you take that and add it to the Google Maps API, you can create a static map. As an example:

https://maps.googleapis.com/maps/api/staticmap?size=1000x1000&maptype=roadmap&path=color:0xf...

Will give you an example of a trip I took a while back. Essentially you need to take:

https://maps.googleapis.com/maps/api/staticmap?size=1000x1000&maptype=roadmap&path=color:0xff0000ff|weight:5|enc:

add your "path" and then add &format=jpg at the end. Note, if your path has backslashes in it (\) you might need to escape them by adding an extra (\\).

If you plan to do more than one or two, you'll need to get an API key from Google.
(Edited)