Quantcast
Channel: maps for developers - Medium
Viewing all articles
Browse latest Browse all 2230

Mapping Global Bandwidth with Turfjs on the Server

$
0
0

Turfjs works everywhere: in browsers,on desktops, 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 useturf.tin to show global patterns.

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.


Viewing all articles
Browse latest Browse all 2230

Trending Articles