def length_haversine(self):
        ret = 0

        for i in range(len(self.nds)-1):
            thisnode = self.osm.nodes[ self.nds[i] ]
            nextnode = self.osm.nodes[ self.nds[i+1] ]
            ret += dist(thisnode.lon,thisnode.lat,nextnode.lon,nextnode.lat)

        return ret
dataset/ETHPy150Open bmander/graphserver/pygs/graphserver/ext/osm/osm.py/Way.length_haversine/original