@wemap/routers 12.10.8-alpha.0 → 12.10.8-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (194) hide show
  1. package/dist/helpers/InstructionManager.d.ts +20 -0
  2. package/dist/helpers/InstructionManagerV1.d.ts +7 -0
  3. package/{index.ts → dist/index.d.ts} +1 -11
  4. package/dist/index.js +1 -5098
  5. package/dist/index.js.map +1 -1
  6. package/dist/src/ItineraryInfoManager.d.ts +31 -0
  7. package/dist/src/ItineraryInfoManager.spec.d.ts +1 -0
  8. package/dist/src/RoutingError.d.ts +24 -0
  9. package/{src/StatusCode.ts → dist/src/StatusCode.d.ts} +2 -3
  10. package/dist/src/Utils.d.ts +6 -0
  11. package/dist/src/graph/Edge.d.ts +32 -0
  12. package/dist/src/graph/Edge.spec.d.ts +1 -0
  13. package/dist/src/graph/Graph.d.ts +40 -0
  14. package/dist/src/graph/Graph.spec.d.ts +1 -0
  15. package/dist/src/graph/GraphProjection.d.ts +11 -0
  16. package/dist/src/graph/GraphProjectionOptions.d.ts +7 -0
  17. package/dist/src/graph/GraphRoute.d.ts +19 -0
  18. package/dist/src/graph/GraphRoute.spec.d.ts +2 -0
  19. package/dist/src/graph/GraphRouter.d.ts +20 -0
  20. package/dist/src/graph/GraphRouter.spec.d.ts +1 -0
  21. package/dist/src/graph/GraphRouterEngine.d.ts +77 -0
  22. package/{src/graph/GraphRouterOptions.ts → dist/src/graph/GraphRouterOptions.d.ts} +5 -7
  23. package/dist/src/graph/GraphRouterOptionsBuilder.d.ts +20 -0
  24. package/dist/src/graph/NoRouteFoundError.d.ts +12 -0
  25. package/dist/src/graph/Vertex.d.ts +19 -0
  26. package/dist/src/graph/Vertex.spec.d.ts +1 -0
  27. package/dist/src/model/Itinerary.d.ts +81 -0
  28. package/dist/src/model/Itinerary.spec.d.ts +7 -0
  29. package/dist/src/model/Leg.d.ts +66 -0
  30. package/dist/src/model/Leg.spec.d.ts +6 -0
  31. package/dist/src/model/LevelChange.d.ts +7 -0
  32. package/dist/src/model/LevelChange.spec.d.ts +6 -0
  33. package/dist/src/model/RouterRequest.d.ts +40 -0
  34. package/dist/src/model/Step.d.ts +42 -0
  35. package/dist/src/model/Step.spec.d.ts +52 -0
  36. package/dist/src/model/StepExtra.d.ts +3 -0
  37. package/dist/src/model/StepsBuilder.d.ts +16 -0
  38. package/dist/src/model/TransitMode.d.ts +5 -0
  39. package/dist/src/model/TransitMode.spec.d.ts +1 -0
  40. package/{src/model/TravelMode.ts → dist/src/model/TravelMode.d.ts} +1 -2
  41. package/dist/src/model/generateSteps.d.ts +0 -0
  42. package/{src/remote/RemoteRouter.ts → dist/src/remote/RemoteRouter.d.ts} +2 -7
  43. package/dist/src/remote/RemoteRouterManager.d.ts +731 -0
  44. package/dist/src/remote/RemoteRouterManager.spec.d.ts +1 -0
  45. package/dist/src/remote/RemoteRouterUtils.d.ts +6 -0
  46. package/dist/src/remote/cityway/CitywayRemoteRouter.d.ts +109 -0
  47. package/dist/src/remote/cityway/CitywayRemoteRouter.spec.d.ts +1 -0
  48. package/dist/src/remote/deutsche-bahn/DeutscheBahnRemoteRouter.d.ts +31 -0
  49. package/dist/src/remote/deutsche-bahn/DeutscheBahnRemoteRouter.spec.d.ts +1 -0
  50. package/dist/src/remote/geovelo/GeoveloRemoteRouter.d.ts +106 -0
  51. package/dist/src/remote/geovelo/GeoveloRemoteRouter.spec.d.ts +1 -0
  52. package/dist/src/remote/idfm/IdfmRemoteRouter.d.ts +123 -0
  53. package/dist/src/remote/idfm/IdfmRemoteRouter.spec.d.ts +1 -0
  54. package/dist/src/remote/navitia/NavitiaRemoteRouter.d.ts +34 -0
  55. package/dist/src/remote/navitia/NavitiaRemoteRouter.spec.d.ts +1 -0
  56. package/dist/src/remote/navitia/types.d.ts +87 -0
  57. package/dist/src/remote/osrm/OsrmRemoteRouter.d.ts +70 -0
  58. package/dist/src/remote/osrm/OsrmRemoteRouter.spec.d.ts +1 -0
  59. package/dist/src/remote/otp/OtpRemoteRouter.d.ts +69 -0
  60. package/dist/src/remote/otp/OtpRemoteRouter.spec.d.ts +1 -0
  61. package/dist/src/remote/wemap-multi/WemapMultiRemoteRouter.d.ts +19 -0
  62. package/dist/src/remote/wemap-multi/WemapMultiRemoteRouter.spec.d.ts +1 -0
  63. package/dist/src/types.d.ts +31 -0
  64. package/dist/src/wemap-multi/CustomGraphMap.d.ts +56 -0
  65. package/dist/src/wemap-multi/CustomGraphMap.spec.d.ts +1 -0
  66. package/dist/src/wemap-multi/CustomGraphMapTester.d.ts +39 -0
  67. package/dist/src/wemap-multi/CustomGraphMapTester.spec.d.ts +1 -0
  68. package/dist/src/wemap-multi/WemapMultiRouter.d.ts +14 -0
  69. package/dist/src/wemap-multi/WemapMultiRouter.spec.d.ts +1 -0
  70. package/dist/src/wemap-osm/OsmGraphUtils.d.ts +11 -0
  71. package/dist/src/wemap-osm/OsmGraphUtils.spec.d.ts +1 -0
  72. package/dist/src/wemap-osm/OsmRouter.elevators.spec.d.ts +1 -0
  73. package/dist/src/wemap-osm/OsmRouter.spec.d.ts +1 -0
  74. package/dist/tests/CommonTest.d.ts +8 -0
  75. package/dist/vite.config.d.ts +19 -0
  76. package/package.json +10 -7
  77. package/assets/biocbon-bergere-rdc-network.osm +0 -163
  78. package/assets/bureaux-wemap-montpellier-network.osm +0 -174
  79. package/assets/components.osm +0 -146
  80. package/assets/elevator-models-4.osm +0 -89
  81. package/assets/elevator-models.osm +0 -354
  82. package/assets/exit-graph.osm +0 -25
  83. package/assets/gare-de-lest-network-pp-bounds.osm +0 -1613
  84. package/assets/gare-de-lyon-extract.osm +0 -174
  85. package/assets/geovelo-montpellier.json +0 -1144
  86. package/assets/horizontal-elevator.osm +0 -12
  87. package/assets/itinerary-deutsche-bahn-1.json +0 -368
  88. package/assets/itinerary-grenoble-otp-1.json +0 -1536
  89. package/assets/itinerary-grenoble-otp-2.json +0 -1092
  90. package/assets/itinerary-info-two-points-proj.osm +0 -39
  91. package/assets/itinerary-info-two-points.osm +0 -24
  92. package/assets/itinerary-lehavre-cityway-1.json +0 -6799
  93. package/assets/itinerary-lehavre-cityway-2.json +0 -2133
  94. package/assets/itinerary-lehavre-cityway-3.json +0 -12577
  95. package/assets/itinerary-lehavre-cityway-4.json +0 -1451
  96. package/assets/itinerary-lehavre-cityway-5.json +0 -5925
  97. package/assets/itinerary-lemans-navitia.json +0 -7768
  98. package/assets/itinerary-montpellier-osrm-3.json +0 -185
  99. package/assets/itinerary-montpellier-outdoor-without-steps.json +0 -110
  100. package/assets/itinerary-montpellier-outdoor.json +0 -513
  101. package/assets/itinerary-paris-idfm-2.json +0 -1838
  102. package/assets/itinerary-paris-idfm.json +0 -27727
  103. package/assets/itinerary-step-not-on-path-osrm.json +0 -457
  104. package/assets/itinerary-with-duplicate-nodes.json +0 -110
  105. package/assets/network-conveying-backward.osm +0 -74
  106. package/assets/network-elevator.osm +0 -48
  107. package/assets/network-escalators.osm +0 -50
  108. package/assets/network-simple.osm +0 -27
  109. package/assets/network-steps-same-level.osm +0 -283
  110. package/assets/network-with-modifiers.osm +0 -39
  111. package/assets/one-way.osm +0 -46
  112. package/assets/report-map-1.osm +0 -36
  113. package/assets/report-map-2.osm +0 -29
  114. package/assets/report-map-3.osm +0 -15
  115. package/assets/rr-wemap-multi-indoor-outdoor-indoor.json +0 -1352
  116. package/assets/rr-wemap-multi-indoor-outdoor.json +0 -145
  117. package/assets/rr-wemap-multi-multi-level.json +0 -262
  118. package/assets/rr-wemap-multi-outdoor-indoor.json +0 -145
  119. package/assets/rr-wemap-multi-outdoor-outdoor.json +0 -207
  120. package/assets/rr-wemap-multi-remote-indoor-indoor.json +0 -155
  121. package/assets/rr-wemap-multi-remote-indoor-outdoor-indoor.json +0 -668
  122. package/assets/rr-wemap-multi-remote-indoor-outdoor.json +0 -154
  123. package/assets/rr-wemap-multi-remote-outdoor-indoor.json +0 -179
  124. package/assets/rr-wemap-multi-remote-outdoor-outdoor.json +0 -109
  125. package/assets/stairs-and-exit.osm +0 -47
  126. package/helpers/InstructionManager.ts +0 -184
  127. package/helpers/InstructionManagerV1.ts +0 -95
  128. package/src/ItineraryInfoManager.spec.ts +0 -183
  129. package/src/ItineraryInfoManager.ts +0 -181
  130. package/src/RoutingError.ts +0 -60
  131. package/src/Utils.ts +0 -8
  132. package/src/graph/Edge.spec.ts +0 -32
  133. package/src/graph/Edge.ts +0 -64
  134. package/src/graph/Graph.spec.ts +0 -509
  135. package/src/graph/Graph.ts +0 -271
  136. package/src/graph/GraphProjection.ts +0 -15
  137. package/src/graph/GraphProjectionOptions.ts +0 -8
  138. package/src/graph/GraphRoute.spec.ts +0 -15
  139. package/src/graph/GraphRoute.ts +0 -43
  140. package/src/graph/GraphRouter.spec.ts +0 -317
  141. package/src/graph/GraphRouter.ts +0 -229
  142. package/src/graph/GraphRouterEngine.ts +0 -248
  143. package/src/graph/GraphRouterOptionsBuilder.ts +0 -98
  144. package/src/graph/NoRouteFoundError.ts +0 -39
  145. package/src/graph/Vertex.spec.ts +0 -42
  146. package/src/graph/Vertex.ts +0 -45
  147. package/src/model/Itinerary.spec.ts +0 -134
  148. package/src/model/Itinerary.ts +0 -370
  149. package/src/model/Leg.spec.ts +0 -107
  150. package/src/model/Leg.ts +0 -224
  151. package/src/model/LevelChange.spec.ts +0 -50
  152. package/src/model/LevelChange.ts +0 -14
  153. package/src/model/RouterRequest.ts +0 -33
  154. package/src/model/Step.spec.ts +0 -99
  155. package/src/model/Step.ts +0 -90
  156. package/src/model/StepExtra.ts +0 -1
  157. package/src/model/StepsBuilder.ts +0 -242
  158. package/src/model/TransitMode.spec.ts +0 -31
  159. package/src/model/TransitMode.ts +0 -28
  160. package/src/model/generateSteps.ts +0 -102
  161. package/src/remote/RemoteRouterManager.spec.ts +0 -178
  162. package/src/remote/RemoteRouterManager.ts +0 -72
  163. package/src/remote/RemoteRouterUtils.ts +0 -25
  164. package/src/remote/cityway/CitywayRemoteRouter.spec.ts +0 -122
  165. package/src/remote/cityway/CitywayRemoteRouter.ts +0 -435
  166. package/src/remote/deutsche-bahn/DeutscheBahnRemoteRouter.spec.ts +0 -52
  167. package/src/remote/deutsche-bahn/DeutscheBahnRemoteRouter.ts +0 -85
  168. package/src/remote/geovelo/GeoveloRemoteRouter.spec.ts +0 -54
  169. package/src/remote/geovelo/GeoveloRemoteRouter.ts +0 -293
  170. package/src/remote/idfm/IdfmRemoteRouter.spec.ts +0 -102
  171. package/src/remote/idfm/IdfmRemoteRouter.ts +0 -523
  172. package/src/remote/navitia/NavitiaRemoteRouter.spec.ts +0 -116
  173. package/src/remote/navitia/NavitiaRemoteRouter.ts +0 -445
  174. package/src/remote/navitia/types.ts +0 -73
  175. package/src/remote/osrm/OsrmRemoteRouter.spec.ts +0 -127
  176. package/src/remote/osrm/OsrmRemoteRouter.ts +0 -303
  177. package/src/remote/otp/OtpRemoteRouter.spec.ts +0 -103
  178. package/src/remote/otp/OtpRemoteRouter.ts +0 -223
  179. package/src/remote/wemap-multi/WemapMultiRemoteRouter.spec.ts +0 -103
  180. package/src/remote/wemap-multi/WemapMultiRemoteRouter.ts +0 -56
  181. package/src/types.ts +0 -32
  182. package/src/wemap-multi/CustomGraphMap.spec.ts +0 -40
  183. package/src/wemap-multi/CustomGraphMap.ts +0 -213
  184. package/src/wemap-multi/CustomGraphMapTester.spec.ts +0 -48
  185. package/src/wemap-multi/CustomGraphMapTester.ts +0 -90
  186. package/src/wemap-multi/WemapMultiRouter.spec.ts +0 -138
  187. package/src/wemap-multi/WemapMultiRouter.ts +0 -329
  188. package/src/wemap-osm/OsmGraphUtils.spec.ts +0 -165
  189. package/src/wemap-osm/OsmGraphUtils.ts +0 -173
  190. package/src/wemap-osm/OsmRouter.elevators.spec.ts +0 -106
  191. package/src/wemap-osm/OsmRouter.spec.ts +0 -292
  192. package/tests/CommonTest.ts +0 -78
  193. package/tsconfig.json +0 -3
  194. package/vite.config.ts +0 -4
@@ -0,0 +1,31 @@
1
+ import { CoordinatesCompressedJson } from '@wemap/geo';
2
+ import { EdgeProperties } from './graph/Edge.js';
3
+ import { VertexProperties } from './graph/Vertex.js';
4
+ export type GraphVertexJson = {
5
+ id: number;
6
+ coords: CoordinatesCompressedJson;
7
+ properties?: VertexProperties;
8
+ };
9
+ export type GraphEdgeJson = {
10
+ id: number;
11
+ vertex1Idx: number;
12
+ vertex2Idx: number;
13
+ properties?: EdgeProperties;
14
+ };
15
+ export type GeoGraphJson = {
16
+ vertices: GraphVertexJson[];
17
+ edges: GraphEdgeJson[];
18
+ };
19
+ export type CompressedGraphVertexJson = CoordinatesCompressedJson;
20
+ export type CompressedGeoGraphJson = {
21
+ vertices: CompressedGraphVertexJson[];
22
+ verticesIds: (string | number)[];
23
+ edges: ([
24
+ number,
25
+ number
26
+ ] | [
27
+ number,
28
+ number,
29
+ EdgeProperties
30
+ ])[];
31
+ };
@@ -0,0 +1,56 @@
1
+ import { MultiPolygon } from '@turf/helpers';
2
+ import { Coordinates } from '@wemap/geo';
3
+ import { OsmNode } from '@wemap/osm';
4
+ import { default as Graph } from '../graph/Graph.js';
5
+ import { default as GraphRouter } from '../graph/GraphRouter.js';
6
+ import { GraphRouterOptions } from '../graph/GraphRouterOptions.js';
7
+ import { default as Vertex } from '../graph/Vertex.js';
8
+ export type ParsingErrors = {
9
+ couldNotParseFile?: string;
10
+ routingIoNotFound: OsmNode[];
11
+ routingBoundsNotFound: boolean;
12
+ };
13
+ export default class CustomGraphMap {
14
+ name: string | null;
15
+ graph: Graph;
16
+ router: GraphRouter;
17
+ bounds: MultiPolygon;
18
+ entryPoints: Vertex[];
19
+ constructor(graph: Graph, entryPoints: Vertex[], bounds?: MultiPolygon | null, name?: string | null);
20
+ static fromOsmXml(osmXmlString: string, name?: string | null, callbackErrors?: (errors: ParsingErrors) => void): CustomGraphMap | undefined;
21
+ isPointInside(coordinates: Coordinates): boolean;
22
+ /**
23
+ * Get the list of entry points sorted by the lowest distance between:
24
+ * start -> entry point -> end
25
+ * (as the crow flies)
26
+ *
27
+ */
28
+ getOrderedEntryPointsSortedByDistance(start: Coordinates, end: Coordinates): Vertex[];
29
+ /**
30
+ * Get the best itinerary from any entry point to an end coordinates.
31
+ *
32
+ * The algorithm works as following:
33
+ * 1 - Entry points are sorted using distance (as the crow flies) between start - entry point - end
34
+ * 2 - Try to calculate an itinerary from the first entry point to the end coordinates.
35
+ * 3 - If an itinerary is found, it is returned. Otherwise it tries from the next entry point.
36
+ *
37
+ * /!\ start is only used to sort the entry points (step 1).
38
+ *
39
+ */
40
+ getBestRouteFromEntryPointsToDestination(start: Coordinates, end: Coordinates, options: GraphRouterOptions): import('../graph/GraphRoute.js').default | null;
41
+ /**
42
+ * Get the best itinerary from start coordinates to any entry point.
43
+ *
44
+ * The algorithm works as following:
45
+ * 1 - Entry points are sorted using distance (as the crow flies) between start - entry point - end
46
+ * 2 - Try to calculate an itinerary from the start coordinates to the first entry point.
47
+ * 3 - If an itinerary is found, it is returned. Otherwise it tries to the next entry point.
48
+ *
49
+ * /!\ end is only used to sort the entry points (step 1).
50
+ *
51
+ */
52
+ getBestRouteFromOriginToEntryPoints(start: Coordinates, end: Coordinates, options: GraphRouterOptions): import('../graph/GraphRoute.js').default | null;
53
+ getRouteInsideMap(start: Coordinates, end: Coordinates, options: GraphRouterOptions): import('../graph/GraphRoute.js').default | null;
54
+ getTripInsideMap(waypoints: Coordinates[], options: GraphRouterOptions): import('../graph/GraphRoute.js').default[];
55
+ getRoutesMultipleDestinationsInsideMap(start: Coordinates, ends: Coordinates[], options: GraphRouterOptions): import('../graph/GraphRouter.js').GraphRouterResults;
56
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,39 @@
1
+ import { OsmNode } from '@wemap/osm';
2
+ import { default as CustomGraphMap } from './CustomGraphMap.js';
3
+ import { default as Vertex } from '../graph/Vertex.js';
4
+ export type Report = {
5
+ customGraphMap?: CustomGraphMap;
6
+ errors: Error[];
7
+ };
8
+ export type Error = CouldNotParseFileError | MultipleGraphComponentsError | RoutingBoundsNotFoundError | RoutingIoNotOnGraphError;
9
+ export type CouldNotParseFileError = {
10
+ type: 'could-not-parse-file';
11
+ details: string | undefined;
12
+ };
13
+ export type MultipleGraphComponentsError = {
14
+ type: 'multiple-graph-components';
15
+ data: Vertex[][];
16
+ };
17
+ export type RoutingBoundsNotFoundError = {
18
+ type: 'routing-bounds-not-found';
19
+ };
20
+ export type RoutingIoNotOnGraphError = {
21
+ type: 'routing-io-not-on-graph';
22
+ data: OsmNode[];
23
+ };
24
+ export default class CustomGraphMapTester {
25
+ static createReport(osmXmlString: string): Report;
26
+ static reportToJson(report: Report): {
27
+ graph: import('../types.js').CompressedGeoGraphJson | undefined;
28
+ errors: ({
29
+ type: "multiple-graph-components";
30
+ data: number[][];
31
+ } | {
32
+ type: "routing-io-not-on-graph";
33
+ data: number[];
34
+ } | {
35
+ type: "could-not-parse-file" | "routing-bounds-not-found";
36
+ data?: undefined;
37
+ })[];
38
+ };
39
+ }
@@ -0,0 +1,14 @@
1
+ import { default as CustomGraphMap } from './CustomGraphMap.js';
2
+ import { RoutingFallbackStrategy } from '../remote/RemoteRouterManager.js';
3
+ import { default as Itinerary } from '../model/Itinerary.js';
4
+ import { RouterRequest } from '../model/RouterRequest.js';
5
+ declare class WemapMultiRouter {
6
+ maps: CustomGraphMap[];
7
+ get rname(): string;
8
+ addIOMap(customGraphMap: CustomGraphMap): void;
9
+ removeIOMap(customGraphMap: CustomGraphMap): void;
10
+ removeAllMaps(): void;
11
+ getMapByName(mapId: string): CustomGraphMap | undefined;
12
+ getItineraries(routerRequest: RouterRequest, fallbackStrategy?: RoutingFallbackStrategy, targetMaps?: CustomGraphMap[]): Promise<Itinerary[]>;
13
+ }
14
+ export default WemapMultiRouter;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,11 @@
1
+ import { OsmModel, OsmNode, OsmWay } from '@wemap/osm';
2
+ import { default as Graph } from '../graph/Graph.js';
3
+ import { EdgeProperties } from '../graph/Edge.js';
4
+ import { default as Vertex, VertexProperties } from '../graph/Vertex.js';
5
+ export default class OsmGraphUtils {
6
+ static RESTRICTED_PEDESTRIANS_HIGHWAYS: string[];
7
+ static DEFAULT_WAY_SELECTOR: (way: OsmWay) => boolean;
8
+ static parseNodeProperties(osmNode: OsmNode): VertexProperties;
9
+ static parseWayProperties(osmWay: OsmWay): EdgeProperties;
10
+ static createGraphFromOsmModel(osmModel: OsmModel, waySelectionFilter?: (way: OsmWay) => boolean, callbackVerticesMapping?: (mapping: [nodeId: number, vertex: Vertex][]) => void): Graph;
11
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,8 @@
1
+ import { default as Edge } from '../src/graph/Edge.js';
2
+ import { default as Vertex } from '../src/graph/Vertex.js';
3
+ import { default as Graph } from '../src/graph/Graph.js';
4
+ declare const vertices: Vertex[];
5
+ declare const edges: Edge[];
6
+ declare const graph: Graph;
7
+ declare function verifyCoherence(graph: Graph): void;
8
+ export { vertices, edges, graph, verifyCoherence, Graph, Vertex, Edge };
@@ -0,0 +1,19 @@
1
+ declare const _default: {
2
+ build: {
3
+ minify: string;
4
+ lib: {
5
+ entry: string;
6
+ name: string;
7
+ formats: string[];
8
+ fileName: (format: string) => "index.mjs" | "index.js";
9
+ };
10
+ sourcemap: boolean;
11
+ };
12
+ plugins: import('vite').Plugin[];
13
+ optimizeDeps: {
14
+ esbuildOptions: {
15
+ jsx: string;
16
+ };
17
+ };
18
+ };
19
+ export default _default;
package/package.json CHANGED
@@ -12,7 +12,7 @@
12
12
  "directory": "packages/routers"
13
13
  },
14
14
  "name": "@wemap/routers",
15
- "version": "12.10.8-alpha.0",
15
+ "version": "12.10.8-alpha.1",
16
16
  "bugs": {
17
17
  "url": "https://github.com/wemap/wemap-modules-js/issues"
18
18
  },
@@ -34,10 +34,10 @@
34
34
  "@turf/convex": "^6.5.0",
35
35
  "@turf/helpers": "^6.5.0",
36
36
  "@types/mapbox__polyline": "^1.0.2",
37
- "@wemap/geo": "^12.10.8-alpha.0",
38
- "@wemap/logger": "^12.10.0",
39
- "@wemap/maths": "^12.10.0",
40
- "@wemap/osm": "^12.10.8-alpha.0",
37
+ "@wemap/geo": "^12.10.8-alpha.1",
38
+ "@wemap/logger": "^12.10.8-alpha.1",
39
+ "@wemap/maths": "^12.10.8-alpha.1",
40
+ "@wemap/osm": "^12.10.8-alpha.1",
41
41
  "@wemap/salesman.js": "^2.1.0"
42
42
  },
43
43
  "devDependencies": {
@@ -45,13 +45,16 @@
45
45
  "fetch-mock": "^9.11.0",
46
46
  "geojson": "^0.5.0"
47
47
  },
48
+ "files": [
49
+ "dist"
50
+ ],
48
51
  "exports": {
49
52
  ".": {
50
- "types": "./index.ts",
53
+ "types": "./dist/index.d.ts",
51
54
  "import": "./dist/index.mjs",
52
55
  "require": "./dist/index.js"
53
56
  },
54
57
  "./helpers/*": "./helpers/*"
55
58
  },
56
- "gitHead": "fcf82e31b4b60a8fb006488b337a800f79304722"
59
+ "gitHead": "86498ac564a83bdbd527ba7db9557175d5f27e3f"
57
60
  }
@@ -1,163 +0,0 @@
1
- <?xml version='1.0' encoding='UTF-8'?>
2
- <osm version='0.6' generator='JOSM'>
3
- <node id='-460666' action='modify' visible='true' lat='48.87260236152' lon='2.34329666635' />
4
- <node id='-460667' action='modify' visible='true' lat='48.87250549777' lon='2.34328663305' />
5
- <node id='-460668' action='modify' visible='true' lat='48.87254375114' lon='2.34328204154' />
6
- <node id='-460669' action='modify' visible='true' lat='48.87256254226' lon='2.34328272177' />
7
- <node id='-460670' action='modify' visible='true' lat='48.87256546238' lon='2.3433422765' />
8
- <node id='-460671' action='modify' visible='true' lat='48.87249229923' lon='2.34346145052' />
9
- <node id='-460672' action='modify' visible='true' lat='48.87250820089' lon='2.34335069759' />
10
- <node id='-460673' action='modify' visible='true' lat='48.87250633659' lon='2.34330651324' />
11
- <node id='-460674' action='modify' visible='true' lat='48.87249106885' lon='2.34330823015' />
12
- <node id='-460675' action='modify' visible='true' lat='48.87248804885' lon='2.34333390859' />
13
- <node id='-460676' action='modify' visible='true' lat='48.87250347283' lon='2.34338322091' />
14
- <node id='-460677' action='modify' visible='true' lat='48.87247865327' lon='2.3433874762' />
15
- <node id='-460678' action='modify' visible='true' lat='48.87246936955' lon='2.34345396806' />
16
- <node id='-460679' action='modify' visible='true' lat='48.8725047148' lon='2.34346519175' />
17
- <node id='-460680' action='modify' visible='true' lat='48.87252014738' lon='2.34328487468' />
18
- <node id='-460681' action='modify' visible='true' lat='48.87252306794' lon='2.34334851119' />
19
- <node id='-460682' action='modify' visible='true' lat='48.87254679656' lon='2.34334502157' />
20
- <node id='-460683' action='modify' visible='true' lat='48.87255583689' lon='2.34334369207' />
21
- <node id='-460684' action='modify' visible='true' lat='48.87255247559' lon='2.34338781631' />
22
- <node id='-460685' action='modify' visible='true' lat='48.872553574' lon='2.34337339741' />
23
- <node id='-460686' action='modify' visible='true' lat='48.87258124098' lon='2.34333589031' />
24
- <node id='-460687' action='modify' visible='true' lat='48.8725647793' lon='2.34345056694' />
25
- <node id='-460688' action='modify' visible='true' lat='48.87256316665' lon='2.3432954559' />
26
- <node id='-460689' action='modify' visible='true' lat='48.87259140004' lon='2.34329003417' />
27
- <node id='-460690' action='modify' visible='true' lat='48.87257537018' lon='2.34337678796' />
28
- <node id='-460691' action='modify' visible='true' lat='48.87259587423' lon='2.34338390486' />
29
- <node id='-460692' action='modify' visible='true' lat='48.87258513645' lon='2.34345736901' />
30
- <node id='-460693' action='modify' visible='true' lat='48.87249947934' lon='2.34334343153' />
31
- <node id='-460694' action='modify' visible='true' lat='48.87249408198' lon='2.34338483096' />
32
- <node id='-460695' action='modify' visible='true' lat='48.8725017692' lon='2.34336624663' />
33
- <node id='-460696' action='modify' visible='true' lat='48.87258943336' lon='2.34352007038' />
34
- <node id='-460697' action='modify' visible='true' lat='48.87245061393' lon='2.34347443088' />
35
- <node id='-460698' action='modify' visible='true' lat='48.8726203618' lon='2.3433075471' />
36
- <node id='-460699' action='modify' visible='true' lat='48.87247787613' lon='2.34327167268' />
37
- <node id='-460700' action='modify' visible='true' lat='48.87259588375' lon='2.34325390292' />
38
- <node id='-460702' action='modify' visible='true' lat='48.87262168252' lon='2.34327125172'>
39
- <tag k='wemap:routing-io' v='yes' />
40
- </node>
41
- <way id='-460630' action='modify' visible='true'>
42
- <nd ref='-460666' />
43
- <nd ref='-460686' />
44
- <nd ref='-460670' />
45
- <nd ref='-460683' />
46
- <nd ref='-460682' />
47
- <nd ref='-460681' />
48
- <nd ref='-460672' />
49
- <nd ref='-460673' />
50
- <nd ref='-460667' />
51
- <nd ref='-460680' />
52
- <nd ref='-460668' />
53
- <nd ref='-460669' />
54
- <nd ref='-460688' />
55
- <nd ref='-460670' />
56
- <tag k='highway' v='footway' />
57
- </way>
58
- <way id='-460631' action='modify' visible='true'>
59
- <nd ref='-460671' />
60
- <nd ref='-460676' />
61
- <nd ref='-460672' />
62
- <tag k='highway' v='footway' />
63
- </way>
64
- <way id='-460632' action='modify' visible='true'>
65
- <nd ref='-460673' />
66
- <nd ref='-460674' />
67
- <nd ref='-460675' />
68
- <nd ref='-460693' />
69
- <nd ref='-460672' />
70
- <tag k='highway' v='footway' />
71
- </way>
72
- <way id='-460633' action='modify' visible='true'>
73
- <nd ref='-460676' />
74
- <nd ref='-460694' />
75
- <nd ref='-460677' />
76
- <nd ref='-460678' />
77
- <nd ref='-460671' />
78
- <tag k='highway' v='footway' />
79
- </way>
80
- <way id='-460634' action='modify' visible='true'>
81
- <nd ref='-460671' />
82
- <nd ref='-460679' />
83
- <tag k='highway' v='footway' />
84
- </way>
85
- <way id='-460635' action='modify' visible='true'>
86
- <nd ref='-460680' />
87
- <nd ref='-460681' />
88
- <tag k='highway' v='footway' />
89
- </way>
90
- <way id='-460636' action='modify' visible='true'>
91
- <nd ref='-460668' />
92
- <nd ref='-460682' />
93
- <tag k='highway' v='footway' />
94
- </way>
95
- <way id='-460637' action='modify' visible='true'>
96
- <nd ref='-460683' />
97
- <nd ref='-460685' />
98
- <nd ref='-460684' />
99
- <nd ref='-460685' />
100
- <tag k='highway' v='footway' />
101
- </way>
102
- <way id='-460638' action='modify' visible='true'>
103
- <nd ref='-460685' />
104
- <nd ref='-460681' />
105
- <tag k='highway' v='footway' />
106
- </way>
107
- <way id='-460639' action='modify' visible='true'>
108
- <nd ref='-460685' />
109
- <nd ref='-460682' />
110
- <tag k='highway' v='footway' />
111
- </way>
112
- <way id='-460640' action='modify' visible='true'>
113
- <nd ref='-460691' />
114
- <nd ref='-460686' />
115
- <nd ref='-460690' />
116
- <nd ref='-460687' />
117
- <tag k='highway' v='footway' />
118
- </way>
119
- <way id='-460641' action='modify' visible='true'>
120
- <nd ref='-460688' />
121
- <nd ref='-460689' />
122
- <nd ref='-460666' />
123
- <tag k='highway' v='footway' />
124
- </way>
125
- <way id='-460642' action='modify' visible='true'>
126
- <nd ref='-460690' />
127
- <nd ref='-460691' />
128
- <nd ref='-460692' />
129
- <tag k='highway' v='footway' />
130
- </way>
131
- <way id='-460643' action='modify' visible='true'>
132
- <nd ref='-460666' />
133
- <nd ref='-460691' />
134
- <tag k='highway' v='footway' />
135
- </way>
136
- <way id='-460644' action='modify' visible='true'>
137
- <nd ref='-460676' />
138
- <nd ref='-460695' />
139
- <nd ref='-460693' />
140
- <nd ref='-460694' />
141
- <tag k='highway' v='footway' />
142
- </way>
143
- <way id='-460645' action='modify' visible='true'>
144
- <nd ref='-460672' />
145
- <nd ref='-460695' />
146
- <nd ref='-460694' />
147
- <tag k='highway' v='footway' />
148
- </way>
149
- <way id='-460646' action='modify' visible='true'>
150
- <nd ref='-460700' />
151
- <nd ref='-460698' />
152
- <nd ref='-460696' />
153
- <nd ref='-460697' />
154
- <nd ref='-460699' />
155
- <nd ref='-460700' />
156
- <tag k='wemap:routing-bounds' v='yes' />
157
- </way>
158
- <way id='-460648' action='modify' visible='true'>
159
- <nd ref='-460666' />
160
- <nd ref='-460702' />
161
- <tag k='highway' v='footway' />
162
- </way>
163
- </osm>
@@ -1,174 +0,0 @@
1
- <?xml version='1.0' encoding='UTF-8'?>
2
- <osm version='0.6' generator='JOSM'>
3
- <node id='-440460' action='modify' visible='true' lat='43.60927603206' lon='3.88424673798'>
4
- <tag k='name' v='p7' />
5
- </node>
6
- <node id='-440462' action='modify' visible='true' lat='43.60913609818' lon='3.88411091795'>
7
- <tag k='name' v='p3' />
8
- </node>
9
- <node id='-440464' action='modify' visible='true' lat='43.60929353543' lon='3.88425183223'>
10
- <tag k='name' v='p8' />
11
- </node>
12
- <node id='-440466' action='modify' visible='true' lat='43.60930219142' lon='3.88427017086'>
13
- <tag k='name' v='p9' />
14
- </node>
15
- <node id='-440468' action='modify' visible='true' lat='43.60911942685' lon='3.88422017773'>
16
- <tag k='name' v='p4' />
17
- </node>
18
- <node id='-440470' action='modify' visible='true' lat='43.60935581261' lon='3.88428577699'>
19
- <tag k='name' v='p22' />
20
- </node>
21
- <node id='-440472' action='modify' visible='true' lat='43.60919651074' lon='3.88412853633'>
22
- <tag k='name' v='p1' />
23
- </node>
24
- <node id='-440474' action='modify' visible='true' lat='43.60931199709' lon='3.88413083832'>
25
- <tag k='name' v='p25' />
26
- </node>
27
- <node id='-440476' action='modify' visible='true' lat='43.60917494597' lon='3.88421731753'>
28
- <tag k='name' v='p6' />
29
- </node>
30
- <node id='-440478' action='modify' visible='true' lat='43.60918883875' lon='3.88412626772'>
31
- <tag k='name' v='p2' />
32
- </node>
33
- <node id='-440480' action='modify' visible='true' lat='43.60936726345' lon='3.88427546746'>
34
- <tag k='name' v='p23' />
35
- </node>
36
- <node id='-440482' action='modify' visible='true' lat='43.60917216742' lon='3.8842355275'>
37
- <tag k='name' v='p5' />
38
- </node>
39
- <node id='-440484' action='modify' visible='true' lat='43.60931231268' lon='3.8842731166'>
40
- <tag k='name' v='p10' />
41
- </node>
42
- <node id='-440486' action='modify' visible='true' lat='43.60932336323' lon='3.884200898'>
43
- <tag k='name' v='p11' />
44
- </node>
45
- <node id='-440488' action='modify' visible='true' lat='43.6093629216' lon='3.884212726'>
46
- <tag k='name' v='p12' />
47
- </node>
48
- <node id='-440490' action='modify' visible='true' lat='43.60935965678' lon='3.8842335535'>
49
- <tag k='name' v='p13' />
50
- </node>
51
- <node id='-440492' action='modify' visible='true' lat='43.60932022256' lon='3.88422176261'>
52
- <tag k='name' v='p14' />
53
- </node>
54
- <node id='-440494' action='modify' visible='true' lat='43.60931232238' lon='3.88427309743'>
55
- <tag k='name' v='p15' />
56
- </node>
57
- <node id='-440496' action='modify' visible='true' lat='43.60936673756' lon='3.88428907078'>
58
- <tag k='name' v='p24' />
59
- </node>
60
- <node id='-440498' action='modify' visible='true' lat='43.60926807571' lon='3.884260391'>
61
- <tag k='name' v='p16' />
62
- </node>
63
- <node id='-441184' action='modify' visible='true' lat='43.60932786117' lon='3.88427765877'>
64
- <tag k='name' v='p18' />
65
- </node>
66
- <node id='-441187' action='modify' visible='true' lat='43.60933232537' lon='3.88424831515'>
67
- <tag k='highway' v='elevator' />
68
- <tag k='level' v='0;2' />
69
- <tag k='name' v='p19' />
70
- </node>
71
- <node id='-441210' action='modify' visible='true' lat='43.60932786111' lon='3.8842776591'>
72
- <tag k='name' v='p17' />
73
- </node>
74
- <node id='-441270' action='modify' visible='true' lat='43.6093032' lon='3.8844388'>
75
- <tag k='name' v='p21' />
76
- </node>
77
- <node id='-441273' action='modify' visible='true' lat='43.6095297' lon='3.8845039'>
78
- <tag k='name' v='p26' />
79
- </node>
80
- <node id='-441286' action='modify' visible='true' lat='43.6095624' lon='3.8845134'>
81
- <tag k='name' v='p27' />
82
- </node>
83
- <way id='-440499' action='modify' visible='true'>
84
- <nd ref='-440476' />
85
- <nd ref='-440460' />
86
- <nd ref='-440464' />
87
- <nd ref='-440474' />
88
- <tag k='highway' v='footway' />
89
- <tag k='level' v='2' />
90
- <tag k='name' v='w2' />
91
- </way>
92
- <way id='-440500' action='modify' visible='true'>
93
- <nd ref='-440464' />
94
- <nd ref='-440466' />
95
- <nd ref='-440484' />
96
- <nd ref='-441184' />
97
- <nd ref='-440470' />
98
- <nd ref='-440480' />
99
- <tag k='highway' v='footway' />
100
- <tag k='level' v='2' />
101
- <tag k='name' v='w3' />
102
- </way>
103
- <way id='-440501' action='modify' visible='true'>
104
- <nd ref='-440472' />
105
- <nd ref='-440478' />
106
- <nd ref='-440462' />
107
- <nd ref='-440468' />
108
- <nd ref='-440482' />
109
- <nd ref='-440476' />
110
- <nd ref='-440478' />
111
- <tag k='highway' v='footway' />
112
- <tag k='level' v='2' />
113
- <tag k='name' v='w1' />
114
- </way>
115
- <way id='-440502' action='modify' visible='true'>
116
- <nd ref='-440486' />
117
- <nd ref='-440488' />
118
- <nd ref='-440490' />
119
- <nd ref='-440492' />
120
- <tag k='highway' v='steps' />
121
- <tag k='level' v='1;2' />
122
- <tag k='name' v='w6' />
123
- </way>
124
- <way id='-440503' action='modify' visible='true'>
125
- <nd ref='-440484' />
126
- <nd ref='-440486' />
127
- <tag k='highway' v='footway' />
128
- <tag k='level' v='2' />
129
- <tag k='name' v='w5' />
130
- </way>
131
- <way id='-440504' action='modify' visible='true'>
132
- <nd ref='-440492' />
133
- <nd ref='-440494' />
134
- <nd ref='-441210' />
135
- <nd ref='-440496' />
136
- <tag k='highway' v='footway' />
137
- <tag k='level' v='1' />
138
- <tag k='name' v='w7' />
139
- </way>
140
- <way id='-440505' action='modify' visible='true'>
141
- <nd ref='-440494' />
142
- <nd ref='-440498' />
143
- <tag k='highway' v='footway' />
144
- <tag k='level' v='1' />
145
- <tag k='name' v='w9' />
146
- </way>
147
- <way id='-441188' action='modify' visible='true'>
148
- <nd ref='-441184' />
149
- <nd ref='-441187' />
150
- <tag k='highway' v='footway' />
151
- <tag k='level' v='2' />
152
- <tag k='name' v='w4' />
153
- </way>
154
- <way id='-441214' action='modify' visible='true'>
155
- <nd ref='-441210' />
156
- <nd ref='-441187' />
157
- <tag k='highway' v='footway' />
158
- <tag k='level' v='1' />
159
- <tag k='name' v='w8' />
160
- </way>
161
- <way id='-441263' action='modify' visible='true'>
162
- <nd ref='-441187' />
163
- <nd ref='-441270' />
164
- <nd ref='-441273' />
165
- <tag k='highway' v='footway' />
166
- <tag k='level' v='0' />
167
- <tag k='name' v='w10' />
168
- </way>
169
- <way id='-441268' action='modify' visible='true'>
170
- <nd ref='-441273' />
171
- <nd ref='-441286' />
172
- <tag k='highway' v='footway' />
173
- </way>
174
- </osm>