mapafortaleza
mapafortaleza copied to clipboard
Automatize data actualization
Write an automatic script who actualize the google fusion table data based no the kmz archive.
For now, there are these commands to get the data and extract the kml file:
curl -o transporte_coletivo.zip http://www.etufor.ce.gov.br/googleearth/transporte_coletivo.kmz
unzip transporte_coletivo.zip
Need to use : https://developers.google.com/fusiontables/docs/developers_guide#KML
There is some libraries to use to connect to Fusion table in several languages.
https://developers.google.com/fusiontables/docs/sample_code
This commit add a selenium task to automaticaly to the update via the fusion table interface: https://github.com/tdurand/mapafortaleza/commit/69eec5f18dd43b7e9628b936480c5a08c59f91e3
Not robust and need to be maintain but easy to implement