Get it from the App Store.
In XCode's Preferences > Downloads you can install command line tools.
#!/bin/bash | |
# Settings: edit these as needed | |
PROJECT_NAME="test" | |
OUTPUT_DIRECTORY="~/Documents/MapBox/export/" | |
# first change into TileMill code directory | |
cd /Applications/TileMill.app/Contents/Resources/ | |
# hint: use http://bboxfinder.com/ to get bounds in lon/lat |
curl -XPUT 'http://localhost:9200/twitter/' | |
curl -XPUT 'http://localhost:9200/twitter/tweet/_mapping' -d '{ | |
"tweet" : { | |
"properties" : { | |
"pin": { | |
"properties": { | |
"location": { | |
"type": "geo_point" | |
} |
""" | |
Import Yahoo! GeoPlanet in to MongoDB. | |
This creates a geoplanet collection containing documents like this: | |
{ | |
'_id': woeid, | |
'name': name, | |
'iso': iso, | |
'language': language, |