|
| 1 | +from typing import ClassVar |
| 2 | + |
| 3 | +from typing import overload |
| 4 | +import osmium.osm |
| 5 | +ALL: use_nodes |
| 6 | +BACKWARD: direction |
| 7 | +FORWARD: direction |
| 8 | +UNIQUE: use_nodes |
| 9 | + |
| 10 | + |
| 11 | +class use_nodes: |
| 12 | + ALL: ClassVar[use_nodes] = ... |
| 13 | + UNIQUE: ClassVar[use_nodes] = ... |
| 14 | + def __init__(self, value: int) -> None: ... |
| 15 | + @property |
| 16 | + def name(self) -> str: ... |
| 17 | + @property |
| 18 | + def value(self) -> int: ... |
| 19 | + |
| 20 | +class direction: |
| 21 | + BACKWARD: ClassVar[direction] = ... |
| 22 | + FORWARD: ClassVar[direction] = ... |
| 23 | + def __init__(self, value: int) -> None: ... |
| 24 | + @property |
| 25 | + def name(self) -> str: ... |
| 26 | + @property |
| 27 | + def value(self) -> int: ... |
| 28 | + |
| 29 | +class Coordinates: |
| 30 | + @overload |
| 31 | + def __init__(self) -> None: ... |
| 32 | + @overload |
| 33 | + def __init__(self, cx: float, cy: float) -> None: ... |
| 34 | + @overload |
| 35 | + def __init__(self, location: osmium.osm.Location) -> None: ... |
| 36 | + def valid(self) -> bool: ... |
| 37 | + @property |
| 38 | + def x(self) -> float: ... |
| 39 | + @property |
| 40 | + def y(self) -> float: ... |
| 41 | + |
| 42 | + |
| 43 | +class GeoJSONFactory: |
| 44 | + def __init__(self) -> None: ... |
| 45 | + @overload |
| 46 | + def create_linestring(self, list: osmium.osm.WayNodeList, use_nodes: use_nodes = ..., direction: direction = ...) -> str: ... |
| 47 | + @overload |
| 48 | + def create_linestring(self, way: osmium.osm.Way, use_nodes: use_nodes = ..., direction: direction = ...) -> str: ... |
| 49 | + def create_multipolygon(self, area: osmium.osm.Area) -> str: ... |
| 50 | + @overload |
| 51 | + def create_point(self, location: osmium.osm.Location) -> str: ... |
| 52 | + @overload |
| 53 | + def create_point(self, node: osmium.osm.Node) -> str: ... |
| 54 | + @overload |
| 55 | + def create_point(self, ref: osmium.osm.NodeRef) -> str: ... |
| 56 | + @property |
| 57 | + def epsg(self) -> int: ... |
| 58 | + @property |
| 59 | + def proj_string(self) -> str: ... |
| 60 | + |
| 61 | +class WKBFactory: |
| 62 | + def __init__(self) -> None: ... |
| 63 | + @overload |
| 64 | + def create_linestring(self, list: osmium.osm.WayNodeList, use_nodes: use_nodes = ..., direction: direction = ...) -> str: ... |
| 65 | + @overload |
| 66 | + def create_linestring(self, way: osmium.osm.Way, use_nodes: use_nodes = ..., direction: direction = ...) -> str: ... |
| 67 | + def create_multipolygon(self, area: osmium.osm.Area) -> str: ... |
| 68 | + @overload |
| 69 | + def create_point(self, location: osmium.osm.Location) -> str: ... |
| 70 | + @overload |
| 71 | + def create_point(self, node: osmium.osm.Node) -> str: ... |
| 72 | + @overload |
| 73 | + def create_point(self, ref: osmium.osm.NodeRef) -> str: ... |
| 74 | + @property |
| 75 | + def epsg(self) -> int: ... |
| 76 | + @property |
| 77 | + def proj_string(self) -> str: ... |
| 78 | + |
| 79 | +class WKTFactory: |
| 80 | + def __init__(self) -> None: ... |
| 81 | + @overload |
| 82 | + def create_linestring(self, list: osmium.osm._osm.WayNodeList, use_nodes: use_nodes = ..., direction: direction = ...) -> str: ... |
| 83 | + @overload |
| 84 | + def create_linestring(self, way: osmium.osm._osm.Way, use_nodes: use_nodes = ..., direction: direction = ...) -> str: ... |
| 85 | + def create_multipolygon(self, area: osmium.osm._osm.Area) -> str: ... |
| 86 | + @overload |
| 87 | + def create_point(self, location: osmium.osm._osm.Location) -> str: ... |
| 88 | + @overload |
| 89 | + def create_point(self, node: osmium.osm._osm.Node) -> str: ... |
| 90 | + @overload |
| 91 | + def create_point(self, ref: osmium.osm._osm.NodeRef) -> str: ... |
| 92 | + @property |
| 93 | + def epsg(self) -> int: ... |
| 94 | + @property |
| 95 | + def proj_string(self) -> str: ... |
| 96 | + |
| 97 | +def haversine_distance(list: osmium.osm.WayNodeList) -> float: ... |
| 98 | +def lonlat_to_mercator(coordinate: Coordinates) -> Coordinates: ... |
| 99 | +def mercator_to_lonlat(coordinate: Coordinates) -> Coordinates: ... |
0 commit comments