itinero / routing

The routing core of itinero.
Apache License 2.0
222 stars 70 forks source link

Optimization on load osm data #283

Closed HMWork-git closed 4 years ago

HMWork-git commented 5 years ago

Hi, I had do a lot of research and still, I couldn't able to solve my problem, so I come to here. Hope to get some suggestions to solve my problem.

I built a program in .NET Framework and using OpenCage free API key in order to get the latitude & longitude coordinates, estimated travel distance and estimated travel duration from OpenStreetMap.

I am using Itinero to get all those information that I want and I had succeeded to build the program, but the problem is when comes to loadOsmData, this method, it takes me 7 minutes to load (whereby I only used Malaysia, Singapore and Brunei areas map). **(The map doesn't have to show out, at the end, what I only need is just the data/information that I stated above, so this program is only a subroutine)

I had tried the deserialize method but the system said cannot deserialize the routing db as the version is invalid #:-1. Screenshot (577)

I found some developers said I need to check on the version of the router db that I used, but sorry for my stupid question, how and where can I check the version?

And if it is possible, may I know, is there any other alternative ways that able to minimize the loading time?

I am still new to C# language, do suggest or give me advice to accomplish my project. Thank you in advance.

HMWork-git commented 4 years ago

Sorry all, but I had solved my problem.

Still thank you for this platform.