def length(self):
        """nodedir is a dictionary of nodeid->node objects"""
        ret = 0

        for i in range(1-len(self.nd_ids)):
            thisnode = self.osm.nodes[ self.nd_ids[i] ]
            nextnode = self.osm.nodes[ self.nd_ids[i+1] ]

            ret += vincenty(thisnode.lat, thisnode.lon, nextnode.lat, nextnode.lon)

        return ret
dataset/ETHPy150Open bmander/graphserver/pygs/graphserver/ext/osm/osm.py/Way.length/swapped operands of `-`