barefootstache

This uses #TurfJs polygon length function to calculate its circumference. The underlying sorting of the coordinates uses polar coordinates, since that is how they are being randomly generated. By first sorting over the degrees and the distances.

For most instances this is a pretty good estimate, though in some case a self-intersecting polygon can be created, which hints that there is a more optimized polygon.

Further this problem is a typical 'travelling salesman problem' which can be solved via various algorithms.

Though before considering such optimization issues, there is the main question if the randomly generated POI is even accessible to the public.

In the case one is a pedestrian, one could use #overpass to gather information if any #OpenStreetMap highways exist in the proximity to the POI and then find the one that is the closest and permissive to pedestrians. Then move the POI to that location.

This example only works if there is enough #OSM data at the location.

#mathematics #maths

My Ruck Club

Toying around with the idea of creating a random POI generator which can be used as a #StarCourse or an optimization challenge to navigate throughout the POIs.

This tool is required for the #SagaOfTheRuckers navigator challenge.

Tools: #TurfJs #Leaflet #OpenStreetMap #WebDev

My Ruck Club

Toying around with the idea of creating a random POI generator which can be used as a #StarCourse or an optimization challenge to navigate throughout the POIs.

This tool is required for the #SagaOfTheRuckers navigator challenge.

Tools: #TurfJs #Leaflet #OpenStreetMap #WebDev

Mark Stosberg

For those who use the Turf.js JavaScript library for GIS/mapping work. Turf 7.2.0 has been released, which fixes a lot of edge case bugs by replacing their `polygon-clippling` dependency with `polyclip-ts`.

github.com/Turfjs/turf/release

#JavaScript #Nodejs #TurfJS #Turf #GIS #Mapping

Releases · Turfjs/turf

A modular geospatial engine written in JavaScript and…

GitHub
Mark Stosberg

I was helping an #UrbanPlanning friend with some spatial analysis with #QGIS but the project seemed to be running out of her 8GB memory.

I advised a #FrameworkLaptop with more memory. She got the DIY option, which lead her to consider her OS choice, which lead her try #Linux (#Ubuntu), which is what she installed after testing it.

Now we'll get back on track using #QGIS / #Docker / #Valhalla / #TurfJS to explore some spatial analysis ideas.

Mark Stosberg

I've now published a write-up and the source code for how I calculated a connectivity rank which could be used to help prioritize how a bike network is built out based how segments would improve connections with the existing network.

mark.stosberg.com/bike-network

Thanks to all the open source mapping projects that helped make this possible, including #qgis #valhalla #josm and #turfjs. And yes, I used JavaScript for this.

Feedback, improvements welcome!

#mapping #spatialAnalysis #minneapolis

Mark Stosberg

Currently waiting on my old laptop to merge 3,476 isochrone polygons into a single MultiPolygon, 🤞 that it doesn't crash part way through.

#turfjs does crash in cases like this, so I'm using `polyclip-ts`.

Another project I'd like to get to is submitting a pull request to the Turf.js project to switch to using polyclip-ts internally, so it doens't crash either. Discussion about this spread across a few issues. One of them is here:

github.com/Turfjs/turf/issues/

1,500 polygons left to merge...🧵

Odd bug in @turf/difference calculation · Issue #2409 · Turfjs/turf

Using turf 6.5.0 I get an odd error in a very specific…

github.com
Mark Stosberg

v3.0 of my "Walk Potential" software has been released. This an #UrbanPlanning #mapping tool used in planning to quantify the number of "interesting" places nearby to walk. Useful metric for demand to fix sidewalk network gaps.

Release notes: gitlab.com/markstos/walk-poten

Docs: gitlab.com/markstos/walk-poten

First reply with a boundary polygon for their city wins free Walk Potential analysis for that city.

#gis #BloomingtonIN #OpenStreetMap #OpenTripPlanner #TurfJS

Example Walk Potential Heatmap:

Jeremia Kimelman

And here's the list!

General use tools:

1. #d3
2. #lodash

Web scraping tools

1. #p-queue
2. #cheerio
3. #puppeteer

Geospatial tools

1. #mapshaper
2. #turfjs
3. #qgis

Website tools

1. #sveltekit

Tools that are also companies

1. @observablehq
2. #Github actions
3. #netlify