itinero / OpenLR

A C# Implementation of the OpenLR specification using Itinero.
https://www.itinero.tech
Other
18 stars 12 forks source link

Lack of documentation #94

Open YuriiNskyi opened 4 years ago

YuriiNskyi commented 4 years ago

Here are the use cases of this library. I want to add traffic data to my router DB, and... it's absolutely unclear how to do it!

When checking the example, only encoding and decoding in one router DB are showed. There are a couple of questions about this example:

  1. What should I do when I want to organize data communication between two router DBs? By data communication I mean deserialized memory mapped router DB, which can change it's edge or vertex information at runtime. All that's complexity is for traffic data.
  2. If I need to serialize my router DB, when should I do this? Here the preparations of that DB:
var routerDb = _repository.GetRouterDb(); // simply adds edges and vertices
routerDb.AddSupportedVehicle(_profile.Parent);

routerDb.Network.Sort();
routerDb.OptimizeNetwork();
routerDb.Network.Compress();

routerDb.AddContracted(_profile);

seems that DB must be serialized after adding supported vehicle.

YuriiNskyi commented 4 years ago

@xivk hello, is there any progress? It seems that I can already use this library partially, but I absolutely don't know how to use it fully.