Assumptions:
- MongoDB is installed
- Apache server with php5 is installed
- MongoDB php driver is installed
- Apache httpd server serves on port 80
- Files are loading into a mashup directory
Running the application:
-
Download and cleanse the data
-
Import data into MongoDB
/usr/local/mongodb/bin/mongoimport -d mashup -c cameras --type csv --file ~/Downloads/Baltimore_Fixed_Speed_Cameras.csv --headerline
- CURL results into a KML file
curl http://localhost/mashup/test.php > /Library/WebServer/Documents/mashup/cameras.kml