Apps Script for NYC Mesh spreadsheet database.
- The
onEdit
handler is implemented which ensures each node's ID field is populated and geocodes its addresses if possible.
Note <script-id>
will be generated after publishing as a web app.
- GET
https://script.google.com/macros/s/<script-id>/exec?method=geography&format=json|kml
To use with Google Earth, make sure the script is published as a web app, then paste or import the following KML file into "My Places" (make sure to replace <script-id>
):
<NetworkLink>
<name>NYC Mesh</name>
<flyToView>0</flyToView>
<Link>
<href>https://script.google.com/macros/s/<script-id>/exec?method=geography&format=kml</href>
<viewRefreshMode>onRequest</viewRefreshMode>
</Link>
</NetworkLink>