How to make fancy road trip maps with R and OpenStreetMap
andrewheiss.com
andrewheiss.com
This is amazing. Thanks so much for sharing.
And it’s even more amazing by noticing the fact that you and your wife go the extra mile and make it an adventure for your kids!
F*%k screens (iPads/iPhones). This kind of attention and adventure is what kids really need and deserve (imho).
I’m a proud father of 3 and I can imagine the joy and curiosity of your kids on this trip.
I wish you as family all the best and an unforgettable time with amazing and memorable moments!
With some maps of Cretaceous sediments, fertile Black Belt Prairie soil, farm size 1997, slave population 1860, black population 2010, and Election Results.
A little bit about the soils from a different link:
"The Black Belt is the only region in Alabama with extensive regions of alkaline soils (soil pH> 7.0). Early settlers discovered these clayey soils held more nutrients and were generally more productive than the sandier Coastal Plain soils. For this reason, many of the large, antebellum cotton plantations were located in the Black Belt region of Alabama and Mississippi. Black Belt soil color is dark because of the humus, or decomposed organic matter, that often coats the clay particles. However, severe erosion due to intensive farming practices removed much of the dark, rich topsoil."
https://www.aces.edu/blog/topics/healthy-soils/alabama-soils...
Maybe return through maximally republican counties and compare?
This feels like 1998 on IRC. I'm shaking my head and laughing at the same time.
I mean on the internet anyone can anonymously claim they're anything, but what this person in particular is claiming doesn't sound out of the realm of possibilities at all.
https://www.gsa.gov/policy-regulations/regulations/federal-t...
My understanding is in Florida you can be arrested for dressing in opposition to the gender you were assigned at birth. If witnessed by a child this can be considered a sex crime, for which sex crimes involving children in Florida are eligible for the death penalty. Do I think this is likely to happen? Yes. The past 4-6 years have demonstrated we keep /hoping/ for de-escalation, but then examples are made that get national attention and evil things become normalized. Can and 'will happen' are subjective, but they did recently make it legal to seize trans kids.
https://www.reuters.com/world/us/desantis-signs-florida-ban-...
I'm part of an employee advocacy group. It is my role to be sensitive and address concerns some may consider isolated or minute. Things we never thought we'd have to discuss at work are now being discussed to keep (management), employees, and families aware of risks and safe.
What is your definition of evil?
Try describing a concrete situation in which someone is accused under these laws you speak of, and then is able to escape by simply moving over the state border. Do you live in the world of the Dukes of Hazzard, where they can escape the Sheriff as long as they manage to cross the border? Do you think there are no extradition laws between the states?
Sure, some states are targeting Trans people with the worst offending state being Texas, whose recently indicated-and-stripped-of-power AG ken Paxton criminalized provision of gender affirming care to children as child abuse. But this map goes across the full length of the worst state for trans people, so I don't really see how that map helps LGBT people.
I don't see the issue with the comment, he didn't assign any judgement to the map. Which is where the politics problem usually arises.
Furthermore, clearly some things are too political to bring up in some places. This is not controversial. We can all agree we shouldn't let schools preach political propaganda to our children "because everything is political anyways." Or that churches shouldn't preach political propoganda "because everything is political anyways." This is one such case - it's a divisive partisan viewpoint that is only loosely related to the original topic and has nothing to do with hacker news. I assume the original poster meant no harm but it's still a negative contribution.
The original post is about roads, those roads exist (or don't exist) due to political processes.
> Furthermore, clearly some things are too political to bring up in some places.
Can you please explain what is too political about that post? I don't really get what you take offense at? It's just the result of a vote?
“Democratic counties”, right? I understand that it’s a common epithet used to deride an opposing party; but if one wishes to remain apolitical isn’t it better to apply the neutrality of using the party’s actual name and conventions of capitalization?
Simple fact most Red's don't want to associate with Blue's and it's the same on the other side. Sure individuals won't agree but they are a minority. If you don't like the project, then just move on it has NOTHING to do with you.
It seems to me that "everything is political" is just a way to provide cover for pushing partisan viewpoints places.
Meanwhile there is a more interesting subthread exploring an interesting historical and geological reason behind why some of the counties in question leaned Democratic you don’t seem too interested in. Strange…
And I said by doing this you make online discussions miserable, not that I myself am miserable. If you aim to derail the argument with personal attacks in the form of keyboard psychoanalysis - reading comprehension is very much required.
This last comment extends, at an uncomfortable level, the politics argument and name calling you started and you’re accusing others of, for no discernible reason.
You might have gotten too much internet sun this week, throw some ointment on it and stay in the shade. You are the only person going political in this thread.
When everyone around you seemingly makes everything political, maybe it's sometimes the observer and not the observed?
> I appreciate everybody's totally genuine concern about my mental health.
It's probably more genuine than you think, however hard that is to believe.
I made it a point to have the sub remain Apolitical - total disaster to the point where the corrupt reddit admins got involved and kicked me out of the sub (admins have tons of alt accounts they use to get mod status in /r/'s)
Its very hard to be apolitical at all these days because the constant barrage of damage control and distractions used to shield US lawmakers from corruption scrutiny. And it affects our lives on a daily basis.
Look at the news cycle today. Literally today ; talking about 'running out of money and raising the debt ceiling' - but zero acknowledgement of the ~250 BILLION dollars we have thus far sent to Ukraine for another proxy war. Fuck that.
We have fucking zombies slurping off the government tit (feinstein) and a crap ton of geriatric long time sitters with dementia and corrupt insider activities
https://i.imgur.com/fRlfeB2.png
https://i.imgur.com/aNoLw7X.png
A lot of that money exists only on paper. Take a warehouse full of air defense missiles manufactured in 2000, with a cost of $3m per missile and a shelf life of 25 years. If you give 200 of them to Ukraine to defend its citizens from Russian terror attacks, then on paper that costs $600m. If you use "replacement value" as cost and new missiles cost $6m (because they're better), you can inflate their value to $1.2bn. If you do nothing and let them expire, they'll be worthless in 2 years and you'll just write that $600m or $1.2bn off. In either case, accounting reports lots of money spent, but no real money actually changes hands. That money was already spent decades ago and you aren't saving anything by withholding missiles. By giving air defense missiles to Ukraine instead of letting them sit in a warehouse until they become obsolete, you at least do something useful with them.
I use https://trips.furkot.com (which is free) for this kind of trip planning. It is fantastic to determine how much stuff you can fit in a day, taking into account when you want to start/end your day, driving time, stops for food, time spent at any road-side attractions, overnight stays, ticketed events (to ensure you arrive on time), etc. It's an incredible resource that seems to "fly under the radar".
- go html/template for the front-end
- github.com/twpayne/go-gpx for parsing the gps tracks
- github.com/fogleman/gg for drawing the images
- github.com/dsoprea/go-exif/ for reading the exif of the photos, so I can show where are they taken on the route map
Most of the R packages in this post aren't that new either.
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
Ecologists, researchers working with geological or geospatial data use R and have been using R for a long, long time. The 'old 'standard library 'maps' is decades old by now, with maps v3 now being 8 years old. maps v2 goes back to 2003, about the time of Python 2.3?
I can't even find the sources of maps v1. https://cran.r-project.org/src/contrib/Archive/maps/ I believe that maps v1 was for R's predecessor, S, so from the late 90s, about the time Python 1.5 came out. Was anybody even using Python then?
OP's post uses the slightly fancier tidyverse-versions of these decades-old libraries. I think it's safe to say that map-making libraries are older in R than in Python.
....something....something...requirement.. different approach...
ggplot2 is an obvious heavy-weight, but other packages such as mapsf and tmap also are top notch in this regard.
on the other hand, my general map making experience in Python has not been very pleasant when I had to work towards creating a map following acceptable cartographic practices, ie. anything beyond throwing data on a webmap layer with subpar legend and symbology.
"More and better" is simply subjective and not substantiated. In fact detailed and objective comparisons of capabilities, performance etc between these ecosystems are sorely lacking not just in map-making but practially concerning every comparison.
Still, the "waste of open source energy argument" is quite bit more complex and I'm frequently wondering about this.
For sure this "waste" happens everywhere in open source. About the only thing that approaches some optimal level of efficiency is the Linux kernel. From there on, distributions, desktops, toolchains, apps, libraries etc. is the epitomy of chaos.
This diversity creates resilience and a sort of competition for the survival of the fittest. The openness also facilitates fast diffusion and borrowing good ideas. But it is also true that open source resources are still scarce so development happens at maybe much lower speed than what would be possible if more coordination / less fragmentation was practiced.
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.
As Rick Steves says, if you can't justify staying somewhere for at least one night, it might be a good idea just to keep moving!
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 them however you want.
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.
Would have loved to see the end result at the top of the article instead of having to scroll all the way down to the bottom for it
Thank you
The roads looked somehwat like chicken scratch (straight, not many curves). Like if you were mapping directions in sand/dirt with a stick in explaining to someone how to get some place.
Ah, yes, it was Linedrive: https://somethingaboutmaps.wordpress.com/2011/03/08/remember...
The kiddos got to see a LOT of really cool things. They had a blast.
But keeping this "limited iPads/electronics" policy for the kids: is the idea to print out these maps and put them into a journal for them to annotate on?
Thanks for sharing.