Skip to content

Commit

Permalink
minimist installation + area generation
Browse files Browse the repository at this point in the history
  • Loading branch information
Ramya committed Feb 4, 2017
1 parent 9df1a37 commit 8eb89d3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions utilities/metrics/area.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ var cities = require('./worldcities.json');
//console.log(cities);
console.log('cities'+','+'area');
cities.features.forEach(function(item){


console.log(item.properties.label+','+turf.area(item)/1000000);
});
4 changes: 2 additions & 2 deletions utilities/metrics/readiness.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env bash
s#!/usr/bin/env bash

uploadTo="s3://mapbox/worldcities"

Expand All @@ -15,7 +15,7 @@ uploadTo="s3://mapbox/worldcities"


#install dependencies
sudo npm install -g minimist
sudo npm install minimist
sudo npm install -g path
sudo npm install -g geojson2poly
wget -O - http://m.m.i24.cc/osmconvert.c | cc -x c - -lz -O3 -o osmconvert
Expand Down

0 comments on commit 8eb89d3

Please sign in to comment.