Live data from Hacker News

How to make fancy road trip maps with R and OpenStreetMap

andrewheiss.com

31–40 of 102 posts

Re: How to make fancy road trip maps with R and OpenStreetMap

#31
The only thing I don't like about OSRM (the public facing version, not sure if the Docker one has this limitation) is that the route planning is limited in the number of waypoints.

I'm planning a trip to the west coast and have 50 POIs (coordinates) collected from Wanderlog that I want to visit. I just run a small TSP algorithm over that list and have an ordered collection of points for which I want to calculate the route for.

Unfortunately it seems like OSRM doesn't like my 50+ waypoints, thus I can't really plot the trip.

I'll probably give it another try locally, and then make a PR. It also looks like the only way to get a route across waypoints is to make a GET request, so just imagine how long the request path will be with 50 points :'( That calls out for a new POST endpoint.

Re: How to make fancy road trip maps with R and OpenStreetMap

#32

Earlier quoted context omitted.

So edgy that you’re only posting it using a throwaway account. Stop trolling.

Is this edgy? I work in the gov and last week drafted a policy to inform and quickly relocate staff in such states based on their public-facing potential for harm. Quite a lot of our staff is in Florida right now, and legislation continues to roll through.. It's quite real to me. Also I just cycle through throwaway accounts because when I attached my comments to a username I began to self-censor how I speak. The lack…

For what it's worth, I didn't think that was edgy. Sometimes it's a good idea to think about worse case scenarios

Re: How to make fancy road trip maps with R and OpenStreetMap

#33
post #32

Earlier quoted context omitted.

Is this edgy? I work in the gov and last week drafted a policy to inform and quickly relocate staff in such states based on their public-facing potential for harm. Quite a lot of our staff is in Florida right now, and legislation continues to roll through.. It's quite real to me. Also I just cycle through throwaway accounts because when I attached my comments to a username I began to self-censor how I speak. The lack…

For what it's worth, I didn't think that was edgy. Sometimes it's a good idea to think about worse case scenarios

It's legit the focus of where I work :c (gestures broadly to everything)

Re: How to make fancy road trip maps with R and OpenStreetMap

#34
post #8

Vaguely related, a few years ago I made a map of "how to drive from SF to NYC while passing through the minimum number of Republican-voting counties": https://github.com/louispotok/blue-road-trip

Did you traverse this? Maybe return through maximally republican counties and compare?

Ha, no, just a fun exercise sparked by a conversation with a friend. It also doesn't take the road network into account, just county adjacencies.

Re: How to make fancy road trip maps with R and OpenStreetMap

#35
post #32

Earlier quoted context omitted.

For what it's worth, I didn't think that was edgy. Sometimes it's a good idea to think about worse case scenarios

It's legit the focus of where I work :c (gestures broadly to everything)

To build an interstate underground tunnel for evacuating lgbt?

This feels like 1998 on IRC. I'm shaking my head and laughing at the same time.

Re: How to make fancy road trip maps with R and OpenStreetMap

#36
post #8

Vaguely related, a few years ago I made a map of "how to drive from SF to NYC while passing through the minimum number of Republican-voting counties": https://github.com/louispotok/blue-road-trip

I can't believe how even a topic about open maps API gets turned into politics. And then gets voted to the top. What was HN saying about Twitter's algorithm? Something about polarization, divisiveness, outrage, etc? It's not algorithms, it's you. You're making online discussion miserable for everybody.

I actually hesitated before posting for exactly this reason, and I don't think you're wrong to be sensitive to this. But you'll notice that there's actually no real political content in the link, nor was there any political discussion in the thread, so I think your response is a little bit of an overreaction.

Re: How to make fancy road trip maps with R and OpenStreetMap

#37

Why is there such a movement for making maps with R? The python ecosystem has more and better packages for making maps already. Notwithstanding that there are indeed some nice results, this new R toolchain movement towards maps feels like a waste of open source energy to me.

As someone proficient with R and Python, anything data viz-wise is substantially easier to do in R/ggplot2, particularly something complicated like this post. Most of the R packages in this post aren't that new either.

same here, I love me some ggplot.

Python for everything, but if I need to make something nice to look at, R makes my life so much easier, and the final touch in Affinity Designer/Photo.

In jupyter it's trivial to mix and match python and R anyway, all the wrangling in python and once it's clean, just basic tidyverse in R

Re: How to make fancy road trip maps with R and OpenStreetMap

#38

Why is there such a movement for making maps with R? The python ecosystem has more and better packages for making maps already. Notwithstanding that there are indeed some nice results, this new R toolchain movement towards maps feels like a waste of open source energy to me.

Why build react, angular and all, when jQuery was just fine, why is there such a moment in Js to always build the next framework, seems like a waste of open source energy.

....something....something...requirement.. different approach...

Re: How to make fancy road trip maps with R and OpenStreetMap

#40
post #11
post #6

Sometimes I hold events, and I want to put a little map on the flyer. It's a real pain to manually deal with some SVG of a larger map area, and clip it and style it to fit the space. Does anyone know of any solutions like this for this kind of problem?

A couple of years ago I rendered some maps in QGIS using OpenStreetMap data. It was a complicated beast of functionality but if you learn the right 2 % of buttons it becomes a very competent tool for creating exactly the maps you need. It gives you the tools to show exactly the terrain features you care about (rivers, roads, streets, highways, trails, forests, buildings, railways, etc.) and you can choose to style th…

Total agreement on QGIS: seems daunting at first, but if you know exactly what you want you can usually get there in half an hour.

I have been using this a lot for scout activities and keep grandma-style notes of which buttons to push for a particular use-case. So awesome to be able to do things like contour-only maps and atlas along a route.

For any Danes around: There is an official plugin from "Kortforsyningen" for QGIS, allowing you to pull all the high-quality public data directly into your maps.

Post reply on HN