-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
-Route object (parse, write) -Time format (multiple precisions) -Updated test files -Documentation [ci skip]
- Loading branch information
1 parent
f4bed50
commit b3e9276
Showing
9 changed files
with
588 additions
and
322 deletions.
There are no files selected for viewing
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
import logging | ||
|
||
from .extensions import Extensions | ||
from .link import Link | ||
from .way_point import WayPoint | ||
|
||
class Route(): | ||
""" | ||
Route (rte) element in GPX file. | ||
""" | ||
|
||
def __init__( | ||
self, | ||
name: str = None, | ||
cmt: str = None, | ||
desc: str = None, | ||
src: str = None, | ||
link: Link = None, | ||
number: int = None, # non negative integer | ||
type: str = None, | ||
extensions: Extensions = None, | ||
rtept: list[WayPoint] = []) -> None: | ||
""" | ||
Initialize Route instance. | ||
Args: | ||
name (str, optional): Name. Defaults to None. | ||
cmt (str, optional): Comment. Defaults to None. | ||
desc (str, optional): Description. Defaults to None. | ||
src (str, optional): Source. Defaults to None. | ||
link (Link, optional): Link. Defaults to None. | ||
number (int, optional): Number. Defaults to None. | ||
extensions (Extensions, optional): Extensions. Defaults to None. | ||
rtept (list[WayPoint], optional): Route points. Defaults to []. | ||
""" | ||
self.name: str = name | ||
self.cmt: str = cmt | ||
self.desc: str = desc | ||
self.src: str = src | ||
self.link: Link = link | ||
self.number: int = number | ||
self.type: str = type | ||
self.extensions: Extensions = extensions | ||
self.rtept: list[WayPoint] = rtept |
Oops, something went wrong.