Ejemplo n.º 1
0
 def _point_along_line(self, location1, location2, fraction_along):
     return spatialfunclib.point_along_line(
         location1.latitude, location1.longitude, location2.latitude, location2.longitude, fraction_along
     )
Ejemplo n.º 2
0
 def point_at_meters_along(self, meters):
     return spatialfunclib.point_along_line(self.in_node.latitude,
                                            self.in_node.longitude,
                                            self.out_node.latitude,
                                            self.out_node.longitude,
                                            meters / self.length)
Ejemplo n.º 3
0
 def _point_along_line(self, location1, location2, fraction_along):
     return spatialfunclib.point_along_line(location1.latitude,
                                            location1.longitude,
                                            location2.latitude,
                                            location2.longitude,
                                            fraction_along)
Ejemplo n.º 4
0
    def point_at_meters_along(self, meters):	
	return spatialfunclib.point_along_line(self.in_node.latitude, self.in_node.longitude, self.out_node.latitude, self.out_node.longitude, meters/self.length)