This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import arcpy | |
class Toolbox(object): | |
def __init__(self): | |
"""Define the toolbox (the name of the toolbox is the name of the | |
.pyt file).""" | |
self.label = "Toolbox" | |
self.alias = "" | |
# List of tool classes associated with this toolbox |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function getLatLong(osm_node) { | |
// Takes an open street map url and returns lat long as a comma separated string | |
// eg. osm_node = https://www.openstreetmap.org/way/95010444 | |
// Returns 56.4563803,-3.069582 | |
overpass_url = "http://overpass-api.de/api/interpreter?data="; | |
// TODO - handle this better; | |
var node_type = osm_node.split('/')[3] | |
var node_id = osm_node.split('/')[4] | |