├── .circleci └── config.yml ├── .gitignore ├── .travis.yml ├── CHANGELOG.md ├── LICENSE ├── README.md ├── bench.ts ├── bin ├── run └── run.cmd ├── docs └── cli_matcher.png ├── package.json ├── src ├── commands │ ├── extract.ts │ └── match.ts ├── compare.ts ├── data.ts ├── geom.ts ├── graph.ts ├── index.ts ├── intersections.ts ├── point_matcher.ts ├── proto │ ├── linear.d.ts │ ├── linear.js │ └── speeds.d.ts ├── routing.ts ├── tile_index.ts ├── tiles.ts └── util.ts ├── test ├── .DS_Store ├── geojson │ ├── cycle_network.geojson │ ├── expressways.geojson │ ├── line-directed-test-snapped.out.geojson │ ├── line-directed-test-unsnapped.out.geojson │ ├── line-directed-test.in.geojson │ ├── line_1.in.geojson │ ├── line_1.in.matched.geojson │ ├── line_1a.out.geojson │ ├── line_2.in.geojson │ ├── line_3.in.geojson │ ├── line_4.in.geojson │ ├── line_5.in.geojson │ ├── line_6.in.geojson │ ├── line_side_of_street.geojson │ ├── line_side_of_street.matched.geojson │ ├── line_side_of_street.out.geojson │ ├── line_side_of_street_bidirectional.2.geojson │ ├── line_side_of_street_bidirectional.2.matched.geojson │ ├── line_side_of_street_bidirectional.3.geojson │ ├── line_side_of_street_bidirectional.4.geojson │ ├── line_side_of_street_bidirectional.4.matched.geojson │ ├── line_side_of_street_bidirectional.4.unmatched.geojson │ ├── line_side_of_street_bidirectional.geojson │ ├── line_side_of_street_bidirectional.matched.geojson │ ├── line_side_of_street_override.geojson │ ├── line_side_of_street_override.matched.geojson │ ├── long-paths.geojson │ ├── points_1.in.geojson │ ├── points_1.in.matched.geojson │ ├── points_1.in.unmatched.geojson │ ├── points_1a.out.geojson │ ├── points_1b.out.geojson │ ├── polygon_1.geojson │ ├── portland_digitized_assets.geojson │ ├── portland_digitized_assets.joined.geojson │ ├── portland_digitized_assets.matched.geojson │ ├── roundabout.1.geojson │ ├── roundabout.1.matched.geojson │ ├── roundabout.1.matched.matched.geojson │ ├── roundabout.1a.geojson │ ├── roundabout.1a.matched.geojson │ ├── roundabout.1a.out.geojson │ ├── roundabout.1a.unmatched.geojson │ ├── roundabout.1b.geojson │ ├── roundabout.1b.out.geojson │ ├── roundabout.1c.geojson │ ├── roundabout.1d.geojson │ ├── sf_centerlines.1a.out.geojson │ ├── sf_centerlines.1b.out.geojson │ ├── sf_centerlines.sample.geojson │ ├── sf_centerlines.sample.matched.geojson │ ├── sf_centerlines.sample.out.geojson │ └── test_route.geojson └── pbf │ ├── 12-1170-1566.geometry.6.pbf │ ├── 12-1170-1566.intersection.6.pbf │ ├── 12-1170-1566.metadata.6.pbf │ └── 12-1170-1566.reference.6.pbf ├── test_core.ts ├── test_graph.ts ├── test_match.ts ├── tsconfig.json └── tslint.json /.circleci/config.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sharedstreets/sharedstreets-js/HEAD/.circleci/config.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sharedstreets/sharedstreets-js/HEAD/.gitignore -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sharedstreets/sharedstreets-js/HEAD/.travis.yml -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sharedstreets/sharedstreets-js/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sharedstreets/sharedstreets-js/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sharedstreets/sharedstreets-js/HEAD/README.md -------------------------------------------------------------------------------- /bench.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sharedstreets/sharedstreets-js/HEAD/bench.ts -------------------------------------------------------------------------------- /bin/run: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sharedstreets/sharedstreets-js/HEAD/bin/run -------------------------------------------------------------------------------- /bin/run.cmd: -------------------------------------------------------------------------------- 1 | @echo off 2 | 3 | node "%~dp0\run" %* -------------------------------------------------------------------------------- /docs/cli_matcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sharedstreets/sharedstreets-js/HEAD/docs/cli_matcher.png -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sharedstreets/sharedstreets-js/HEAD/package.json -------------------------------------------------------------------------------- /src/commands/extract.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sharedstreets/sharedstreets-js/HEAD/src/commands/extract.ts -------------------------------------------------------------------------------- /src/commands/match.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sharedstreets/sharedstreets-js/HEAD/src/commands/match.ts -------------------------------------------------------------------------------- /src/compare.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sharedstreets/sharedstreets-js/HEAD/src/compare.ts -------------------------------------------------------------------------------- /src/data.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sharedstreets/sharedstreets-js/HEAD/src/data.ts -------------------------------------------------------------------------------- /src/geom.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sharedstreets/sharedstreets-js/HEAD/src/geom.ts -------------------------------------------------------------------------------- /src/graph.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sharedstreets/sharedstreets-js/HEAD/src/graph.ts -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sharedstreets/sharedstreets-js/HEAD/src/index.ts -------------------------------------------------------------------------------- /src/intersections.ts: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/point_matcher.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sharedstreets/sharedstreets-js/HEAD/src/point_matcher.ts -------------------------------------------------------------------------------- /src/proto/linear.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sharedstreets/sharedstreets-js/HEAD/src/proto/linear.d.ts -------------------------------------------------------------------------------- /src/proto/linear.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sharedstreets/sharedstreets-js/HEAD/src/proto/linear.js -------------------------------------------------------------------------------- /src/proto/speeds.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sharedstreets/sharedstreets-js/HEAD/src/proto/speeds.d.ts -------------------------------------------------------------------------------- /src/routing.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sharedstreets/sharedstreets-js/HEAD/src/routing.ts -------------------------------------------------------------------------------- /src/tile_index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sharedstreets/sharedstreets-js/HEAD/src/tile_index.ts -------------------------------------------------------------------------------- /src/tiles.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sharedstreets/sharedstreets-js/HEAD/src/tiles.ts -------------------------------------------------------------------------------- /src/util.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sharedstreets/sharedstreets-js/HEAD/src/util.ts -------------------------------------------------------------------------------- /test/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sharedstreets/sharedstreets-js/HEAD/test/.DS_Store -------------------------------------------------------------------------------- /test/geojson/cycle_network.geojson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sharedstreets/sharedstreets-js/HEAD/test/geojson/cycle_network.geojson -------------------------------------------------------------------------------- /test/geojson/expressways.geojson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sharedstreets/sharedstreets-js/HEAD/test/geojson/expressways.geojson -------------------------------------------------------------------------------- /test/geojson/line-directed-test-snapped.out.geojson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sharedstreets/sharedstreets-js/HEAD/test/geojson/line-directed-test-snapped.out.geojson -------------------------------------------------------------------------------- /test/geojson/line-directed-test-unsnapped.out.geojson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sharedstreets/sharedstreets-js/HEAD/test/geojson/line-directed-test-unsnapped.out.geojson -------------------------------------------------------------------------------- /test/geojson/line-directed-test.in.geojson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sharedstreets/sharedstreets-js/HEAD/test/geojson/line-directed-test.in.geojson -------------------------------------------------------------------------------- /test/geojson/line_1.in.geojson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sharedstreets/sharedstreets-js/HEAD/test/geojson/line_1.in.geojson -------------------------------------------------------------------------------- /test/geojson/line_1.in.matched.geojson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sharedstreets/sharedstreets-js/HEAD/test/geojson/line_1.in.matched.geojson -------------------------------------------------------------------------------- /test/geojson/line_1a.out.geojson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sharedstreets/sharedstreets-js/HEAD/test/geojson/line_1a.out.geojson -------------------------------------------------------------------------------- /test/geojson/line_2.in.geojson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sharedstreets/sharedstreets-js/HEAD/test/geojson/line_2.in.geojson -------------------------------------------------------------------------------- /test/geojson/line_3.in.geojson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sharedstreets/sharedstreets-js/HEAD/test/geojson/line_3.in.geojson -------------------------------------------------------------------------------- /test/geojson/line_4.in.geojson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sharedstreets/sharedstreets-js/HEAD/test/geojson/line_4.in.geojson -------------------------------------------------------------------------------- /test/geojson/line_5.in.geojson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sharedstreets/sharedstreets-js/HEAD/test/geojson/line_5.in.geojson -------------------------------------------------------------------------------- /test/geojson/line_6.in.geojson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sharedstreets/sharedstreets-js/HEAD/test/geojson/line_6.in.geojson -------------------------------------------------------------------------------- /test/geojson/line_side_of_street.geojson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sharedstreets/sharedstreets-js/HEAD/test/geojson/line_side_of_street.geojson -------------------------------------------------------------------------------- /test/geojson/line_side_of_street.matched.geojson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sharedstreets/sharedstreets-js/HEAD/test/geojson/line_side_of_street.matched.geojson -------------------------------------------------------------------------------- /test/geojson/line_side_of_street.out.geojson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sharedstreets/sharedstreets-js/HEAD/test/geojson/line_side_of_street.out.geojson -------------------------------------------------------------------------------- /test/geojson/line_side_of_street_bidirectional.2.geojson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sharedstreets/sharedstreets-js/HEAD/test/geojson/line_side_of_street_bidirectional.2.geojson -------------------------------------------------------------------------------- /test/geojson/line_side_of_street_bidirectional.2.matched.geojson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sharedstreets/sharedstreets-js/HEAD/test/geojson/line_side_of_street_bidirectional.2.matched.geojson -------------------------------------------------------------------------------- /test/geojson/line_side_of_street_bidirectional.3.geojson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sharedstreets/sharedstreets-js/HEAD/test/geojson/line_side_of_street_bidirectional.3.geojson -------------------------------------------------------------------------------- /test/geojson/line_side_of_street_bidirectional.4.geojson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sharedstreets/sharedstreets-js/HEAD/test/geojson/line_side_of_street_bidirectional.4.geojson -------------------------------------------------------------------------------- /test/geojson/line_side_of_street_bidirectional.4.matched.geojson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sharedstreets/sharedstreets-js/HEAD/test/geojson/line_side_of_street_bidirectional.4.matched.geojson -------------------------------------------------------------------------------- /test/geojson/line_side_of_street_bidirectional.4.unmatched.geojson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sharedstreets/sharedstreets-js/HEAD/test/geojson/line_side_of_street_bidirectional.4.unmatched.geojson -------------------------------------------------------------------------------- /test/geojson/line_side_of_street_bidirectional.geojson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sharedstreets/sharedstreets-js/HEAD/test/geojson/line_side_of_street_bidirectional.geojson -------------------------------------------------------------------------------- /test/geojson/line_side_of_street_bidirectional.matched.geojson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sharedstreets/sharedstreets-js/HEAD/test/geojson/line_side_of_street_bidirectional.matched.geojson -------------------------------------------------------------------------------- /test/geojson/line_side_of_street_override.geojson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sharedstreets/sharedstreets-js/HEAD/test/geojson/line_side_of_street_override.geojson -------------------------------------------------------------------------------- /test/geojson/line_side_of_street_override.matched.geojson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sharedstreets/sharedstreets-js/HEAD/test/geojson/line_side_of_street_override.matched.geojson -------------------------------------------------------------------------------- /test/geojson/long-paths.geojson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sharedstreets/sharedstreets-js/HEAD/test/geojson/long-paths.geojson -------------------------------------------------------------------------------- /test/geojson/points_1.in.geojson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sharedstreets/sharedstreets-js/HEAD/test/geojson/points_1.in.geojson -------------------------------------------------------------------------------- /test/geojson/points_1.in.matched.geojson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sharedstreets/sharedstreets-js/HEAD/test/geojson/points_1.in.matched.geojson -------------------------------------------------------------------------------- /test/geojson/points_1.in.unmatched.geojson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sharedstreets/sharedstreets-js/HEAD/test/geojson/points_1.in.unmatched.geojson -------------------------------------------------------------------------------- /test/geojson/points_1a.out.geojson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sharedstreets/sharedstreets-js/HEAD/test/geojson/points_1a.out.geojson -------------------------------------------------------------------------------- /test/geojson/points_1b.out.geojson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sharedstreets/sharedstreets-js/HEAD/test/geojson/points_1b.out.geojson -------------------------------------------------------------------------------- /test/geojson/polygon_1.geojson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sharedstreets/sharedstreets-js/HEAD/test/geojson/polygon_1.geojson -------------------------------------------------------------------------------- /test/geojson/portland_digitized_assets.geojson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sharedstreets/sharedstreets-js/HEAD/test/geojson/portland_digitized_assets.geojson -------------------------------------------------------------------------------- /test/geojson/portland_digitized_assets.joined.geojson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sharedstreets/sharedstreets-js/HEAD/test/geojson/portland_digitized_assets.joined.geojson -------------------------------------------------------------------------------- /test/geojson/portland_digitized_assets.matched.geojson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sharedstreets/sharedstreets-js/HEAD/test/geojson/portland_digitized_assets.matched.geojson -------------------------------------------------------------------------------- /test/geojson/roundabout.1.geojson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sharedstreets/sharedstreets-js/HEAD/test/geojson/roundabout.1.geojson -------------------------------------------------------------------------------- /test/geojson/roundabout.1.matched.geojson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sharedstreets/sharedstreets-js/HEAD/test/geojson/roundabout.1.matched.geojson -------------------------------------------------------------------------------- /test/geojson/roundabout.1.matched.matched.geojson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sharedstreets/sharedstreets-js/HEAD/test/geojson/roundabout.1.matched.matched.geojson -------------------------------------------------------------------------------- /test/geojson/roundabout.1a.geojson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sharedstreets/sharedstreets-js/HEAD/test/geojson/roundabout.1a.geojson -------------------------------------------------------------------------------- /test/geojson/roundabout.1a.matched.geojson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sharedstreets/sharedstreets-js/HEAD/test/geojson/roundabout.1a.matched.geojson -------------------------------------------------------------------------------- /test/geojson/roundabout.1a.out.geojson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sharedstreets/sharedstreets-js/HEAD/test/geojson/roundabout.1a.out.geojson -------------------------------------------------------------------------------- /test/geojson/roundabout.1a.unmatched.geojson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sharedstreets/sharedstreets-js/HEAD/test/geojson/roundabout.1a.unmatched.geojson -------------------------------------------------------------------------------- /test/geojson/roundabout.1b.geojson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sharedstreets/sharedstreets-js/HEAD/test/geojson/roundabout.1b.geojson -------------------------------------------------------------------------------- /test/geojson/roundabout.1b.out.geojson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sharedstreets/sharedstreets-js/HEAD/test/geojson/roundabout.1b.out.geojson -------------------------------------------------------------------------------- /test/geojson/roundabout.1c.geojson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sharedstreets/sharedstreets-js/HEAD/test/geojson/roundabout.1c.geojson -------------------------------------------------------------------------------- /test/geojson/roundabout.1d.geojson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sharedstreets/sharedstreets-js/HEAD/test/geojson/roundabout.1d.geojson -------------------------------------------------------------------------------- /test/geojson/sf_centerlines.1a.out.geojson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sharedstreets/sharedstreets-js/HEAD/test/geojson/sf_centerlines.1a.out.geojson -------------------------------------------------------------------------------- /test/geojson/sf_centerlines.1b.out.geojson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sharedstreets/sharedstreets-js/HEAD/test/geojson/sf_centerlines.1b.out.geojson -------------------------------------------------------------------------------- /test/geojson/sf_centerlines.sample.geojson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sharedstreets/sharedstreets-js/HEAD/test/geojson/sf_centerlines.sample.geojson -------------------------------------------------------------------------------- /test/geojson/sf_centerlines.sample.matched.geojson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sharedstreets/sharedstreets-js/HEAD/test/geojson/sf_centerlines.sample.matched.geojson -------------------------------------------------------------------------------- /test/geojson/sf_centerlines.sample.out.geojson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sharedstreets/sharedstreets-js/HEAD/test/geojson/sf_centerlines.sample.out.geojson -------------------------------------------------------------------------------- /test/geojson/test_route.geojson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sharedstreets/sharedstreets-js/HEAD/test/geojson/test_route.geojson -------------------------------------------------------------------------------- /test/pbf/12-1170-1566.geometry.6.pbf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sharedstreets/sharedstreets-js/HEAD/test/pbf/12-1170-1566.geometry.6.pbf -------------------------------------------------------------------------------- /test/pbf/12-1170-1566.intersection.6.pbf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sharedstreets/sharedstreets-js/HEAD/test/pbf/12-1170-1566.intersection.6.pbf -------------------------------------------------------------------------------- /test/pbf/12-1170-1566.metadata.6.pbf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sharedstreets/sharedstreets-js/HEAD/test/pbf/12-1170-1566.metadata.6.pbf -------------------------------------------------------------------------------- /test/pbf/12-1170-1566.reference.6.pbf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sharedstreets/sharedstreets-js/HEAD/test/pbf/12-1170-1566.reference.6.pbf -------------------------------------------------------------------------------- /test_core.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sharedstreets/sharedstreets-js/HEAD/test_core.ts -------------------------------------------------------------------------------- /test_graph.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sharedstreets/sharedstreets-js/HEAD/test_graph.ts -------------------------------------------------------------------------------- /test_match.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sharedstreets/sharedstreets-js/HEAD/test_match.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sharedstreets/sharedstreets-js/HEAD/tsconfig.json -------------------------------------------------------------------------------- /tslint.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sharedstreets/sharedstreets-js/HEAD/tslint.json --------------------------------------------------------------------------------