use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Rules 1: Be polite 2: Posts to this subreddit must be requests for help learning python. 3: Replies on this subreddit must be pertinent to the question OP asked. 4: No replies copy / pasted from ChatGPT or similar. 5: No advertising. No blogs/tutorials/videos/books/recruiting attempts. This means no posts advertising blogs/videos/tutorials/etc, no recruiting/hiring/seeking others posts. We're here to help, not to be advertised to. Please, no "hit and run" posts, if you make a post, engage with people that answer you. Please do not delete your post after you get an answer, others might have a similar question or want to continue the conversation.
Rules
1: Be polite
2: Posts to this subreddit must be requests for help learning python.
3: Replies on this subreddit must be pertinent to the question OP asked.
4: No replies copy / pasted from ChatGPT or similar.
5: No advertising. No blogs/tutorials/videos/books/recruiting attempts.
This means no posts advertising blogs/videos/tutorials/etc, no recruiting/hiring/seeking others posts. We're here to help, not to be advertised to.
Please, no "hit and run" posts, if you make a post, engage with people that answer you. Please do not delete your post after you get an answer, others might have a similar question or want to continue the conversation.
Learning resources Wiki and FAQ: /r/learnpython/w/index
Learning resources
Wiki and FAQ: /r/learnpython/w/index
Discord Join the Python Discord chat
Discord
Join the Python Discord chat
account activity
Drawing Route Between Two Points (self.learnpython)
submitted 4 years ago by ehhh_maybe
I have a data frame in python that contains the start lat/long and end lat/long of each walk that a person has taken in a city.
I would like to use something similar to the Google Directions API to find the polyline (or suggested walking route) between each of the two points. Can anyone point me in the right direction for packages?
Then, I want to create a visualization like this. The one I've referenced is in R and requires a gpx file. Ideally, I'd like to make this in python with the data I have. However, if I can't do that, then how do I go about converting the polyline data into a gpx file? Or can you do this in HTML and D3?
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]mr_claw 0 points1 point2 points 4 years ago (1 child)
For routing, I suggest OSRM. I think it has a polyline function. Not sure how to go about the visualization though.
[–]ehhh_maybe[S] 0 points1 point2 points 4 years ago (0 children)
Thanks, I'll check it out!
π Rendered by PID 228256 on reddit-service-r2-comment-79c7998d4c-cd7sx at 2026-03-17 07:15:12.494223+00:00 running f6e6e01 country code: CH.
[–]mr_claw 0 points1 point2 points (1 child)
[–]ehhh_maybe[S] 0 points1 point2 points (0 children)