Skip to content

Commit

Permalink
Merge pull request github#1 from warerebel/feature/decode-lrp
Browse files Browse the repository at this point in the history
Feature/decode lrp
  • Loading branch information
warerebel authored Apr 5, 2022
2 parents 478d551 + a8d7530 commit aa410b7
Show file tree
Hide file tree
Showing 24 changed files with 44,795 additions and 10 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ openlr_decoder
![CodeQL Analysis](https://github.com/warerebel/openlr-decoder/actions/workflows/codeql-analysis.yml/badge.svg)
![Build and test](https://github.com/warerebel/openlr-decoder/actions/workflows/node.js.yml/badge.svg)

A general purpose road network OpenLR decoding solution
A general purpose OpenLR decoding solution for a road network.
12 changes: 12 additions & 0 deletions index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import {decodeOpenLRReference, OpenLRDecodeOptions} from "./src/openLRDecode";
import {Mongo} from "./src/mongo";

export{OpenLRDecodeOptions} from "./src/openLRDecode";

export async function initMongo(url: string, dbName: string){
return Mongo.init(url, dbName);
}

export async function decodedOpenLR(openLRRef: string, collectionName: string, options: OpenLRDecodeOptions): Promise<{route: {length: number;linkid: string;}[];cost: number;} | {route: null;cost: null;}>{
return decodeOpenLRReference(openLRRef, collectionName, options);
}
Loading

0 comments on commit aa410b7

Please sign in to comment.