var routerDb = new RouterDb...
routerDb.prepareFor(profile1)
routerDb.prepareFor(profile2)
routerDb.useOsmStream(...)
routerDb.WriteTo(file)
routerDb = RouterDb.ReadFrom(file)
routerDb.prepareFor(profile1)
routerDb.prepareFor(profile2)
routerDb.Snap( ... ) // crashes
I spent quite some hours figuring this out. I assumed that 'prepareFor' would be idempotent; but it clearly isn't. Maybe an error could be thrown in case of this misuse?
In the following case, a crash happens:
I spent quite some hours figuring this out. I assumed that 'prepareFor' would be idempotent; but it clearly isn't. Maybe an error could be thrown in case of this misuse?