Turfjs works everywhere: in browsers,
and on servers. Here's an example of Turf shining within the server context:
mapping global bandwidth. Using node.js,
express, and a few modules, we can show
local downlink speed for everyone who visits this map, on the map, and use
turf.tin to show global
When the map loads, we use estimate the user's internet connection speed and
store that data internally.
Turf calculates the TIN and Mapbox.js
displays the reults.
In this example, the server is deployed to Heroku
using the Heroku button,
but it will just as easily run on any server, like DigitalOcean or AWS.
Try it out: turf-server-example
is on Github.
is a developer at Mapbox, where he specializes in building interactive and creative open source mapping tools.
Follow @tmcw on Twitter
Tweet: "Mapping global bandwidth with Turfjs on the server"
Advanced geospatial analysis for browsers and node