Python Forum
Best way to map trajectory data on Google Maps
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Best way to map trajectory data on Google Maps
#1
I have a single csv file containing latitudes and longitudes coordinates of trajectories by multiple objects. I wish to plot those trajectories on a single google map using the python driver for google maps. I am not sure what feature of Google Maps would work best to get this done. What allows me to efficiently map trajectory data? Can you show me any examples?
Reply
#2
Roughly, your path to solve the problem should look like the following:

1) Get Google map API key
2) Create index.html and add a google map instance as shown in Google map docs (examples)
3) Serve your csv-data (using Python), or add csv-data directly to index.html (e.g. convert to json-object, or parse csv-string using d3.js, etc.)
4) Use javascript to add objects to the map (you need to explore google map docs/examples)
5) finally, you can serve your index.html and data.csv somewhere (e.g. github pages) as static files.

However, you can use django/flask etc. to serve your index.html and data.csv (but this is another story);
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Help with nested maps Unkovic 10 1,411 Nov-01-2023, 03:45 PM
Last Post: Unkovic
  (Python) Pulling data from UA Google Analytics with more than 100k rows into csv. Stockers 0 1,242 Dec-19-2022, 11:11 PM
Last Post: Stockers
  how to import files in Google Collab wihout downloading them to PC and to Google Disk sveto4ka 9 3,934 Jun-03-2020, 12:40 PM
Last Post: sveto4ka
  Issue with creating an array of pixel data for PNG files in Google Colab The_Sarco 1 1,936 Apr-29-2020, 12:03 AM
Last Post: bowlofred
  Can't visualize maps using Gmaps mPlummers 0 3,562 Sep-11-2019, 02:38 PM
Last Post: mPlummers
  Search "Places near by me" or "where am I" in google maps barry76 1 2,694 Feb-07-2019, 04:10 PM
Last Post: snippsat
  Non-Geographic Heat Maps JackValadez 0 2,103 Oct-17-2018, 06:03 PM
Last Post: JackValadez
  How get attributes of maps from loop statement LB_994 3 3,178 Aug-21-2018, 03:24 PM
Last Post: LB_994
  How to retrieve locality from google maps API Prince_Bhatia 0 3,351 Jul-23-2018, 07:57 AM
Last Post: Prince_Bhatia
  python charmap codec can't decode byte X in position Y character maps to < undefined> owais 9 39,171 Apr-28-2018, 10:52 PM
Last Post: abadawi

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020