Java script to download JSON from Overpass API file and upload to Google Site. Wrapped in a Ruby script which handles calling the Java code and email out the results. All notes assume command being run from CoinTravelerServer repo's base directory and Linux based OS.
Requires Java 1.7 & Ruby 2.X.
To run update via Ruby wrapper and include email notification: ./dist/UpdateJsonOnSiteAndEmail.rb GoogleUsername GooglePassword ./BitcoinMapNodes.json
Parameters:
- Google account username (and Google Site domain name).
- Google account password.
- Local path for file. The file's name will be what you want to update on Google Site.
To run up the Java updater without email notification: java -cp ./dist/UpdateJsonOnSite.jar:./dependencies/ coinTraveler.UpdateJsonOnSite GoogleUsername GooglePassword ./BitcoinMapNodes.json
Parameters:
- Google account username (and Google Site domain name).
- Google account password.
- Local path for file. The file's name will be what you want to update on Google Site.
To create a new jar after updating Java code: jar cfm ./dist/UpdateJsonOnSite.jar Manifest.txt coinTraveler/UpdateJsonOnSite.class
Thanks to Pavol Rusnak for his CoinMap which brought this data and concept to my attention.
Map Data
© by OpenStreetMap contributors
Special thanks to Roland Olbricht for Overpass API
Map Icons
© OpenStreetMap contributors
Available under Open Database Licence (www.opendatacommons.org/licenses/odbl)
Kingpin - Pin Clustering
Copyright [2013-2014] The Apache Software Foundation
This product includes software developed by
The Apache Software Foundation (http://www.apache.org/) and
Bryan Bonczek (https://github.com/itsbonczek).