Nasal library/geo: Difference between revisions

Jump to navigation Jump to search
m
Finish geo.Coord class
(Save)
m (Finish geo.Coord class)
Line 279: Line 279:
|text = Calculates a new coordinate from a given course and distancce, and then updates the coordinates to the new set. Returns the <code>geo.Coord</code> instance.
|text = Calculates a new coordinate from a given course and distancce, and then updates the coordinates to the new set. Returns the <code>geo.Coord</code> instance.
|param1 = course
|param1 = course
|param1text = Mandatory course in degrees to use in calculation.
|param1text = Mandatory course in degrees (in the range 0–360) to use in calculation.
|param2 = dist
|param2 = dist
|param2text = Mandatory distance in metres to use in calculation.
|param2text = Mandatory distance in metres to use in calculation.
Line 286: Line 286:
coord.dump();
coord.dump();
coord.apply_course_distance(245, 10000);
coord.apply_course_distance(245, 10000);
coord.dump(); lat=-0.037964  lon=-0.081415
coord.dump(); # lat=-0.037964  lon=-0.081415
}}
}}
=== PositionedSearch ===
=== PositionedSearch ===

Navigation menu