Author Topic: Routing over online/internal BRouter  (Read 6760 times)

Offline Menion

  • Locus team
  • Professor of Locus
  • *****
  • Posts: 12606
  • Thanked: 839 times
    • View Profile
    • http://www.asamm.com
  • Device: Pixel 5, A12
Re: Routing over online/internal BRouter
« Reply #45 on: April 22, 2021, 14:42:46 »
Hello Arndt
appreciate your feedback!!

1. external card is not (yet) supported. I'm slowly preparing on hard times with coming Android 11 changes (09/2021). So it is possible that it simply won't be possible at all. We will see later...

2. Fast recalculations: hmm, here I will probably need some help. Probably some missing parameter in the 'RoutingContext' that allows re-using previous partial results?

3. bottom-left icon where you choose routing type should be working as "progress" indicator and also "cancel" button when some routing computes is in progress. 'MaxRunningTime'is currently set to 10 minutes, hmm  ???

4. Online ignore No-go. Another task for @Radim V, thanks. Extra parameters are planned. We have to extend the server system because the app does not send the whole routing config to the server like BRouter.de probably do, so we have to invent a mechanism how to pass a set of parameters to the routing server.

5. 'startDirection' value should be set, but I'll rather check it.

@SonnyS
as I wrote in 4. to Arndt. Best profile for "unpaved" is again question mainly to @Radim V
- Official help (ideas, questions, problems): help.locusmap.eu
- Advanced topics, sharing of knowledges: you're here!
- LM 4 Beta download, LM 4 final download
 

Offline abrensch

  • Apprentice of Locus
  • **
  • Posts: 107
  • Thanked: 34 times
    • View Profile
Re: Routing over online/internal BRouter
« Reply #46 on: April 25, 2021, 15:19:43 »
2. Fast recalculations: hmm, here I will probably need some help. Probably some missing parameter in the 'RoutingContext' that allows re-using previous partial results?

Nearly.

checking the "nearbyTrack" is done inside the core code and is activated by setting a (full) filename to it's binary data:

   RoutingContext.rawTrackPath

but writing the "nearbyTrack" is done outside the core code so you are probably missing that (see BRouterWorker.java):

    if ( cr.getFoundRawTrack() != null )
    {
      try
      {
        cr.getFoundRawTrack().writeBinary( rawTrackPath );
      }
      catch( Exception e ) {}
    }
 

Offline Menion

  • Locus team
  • Professor of Locus
  • *****
  • Posts: 12606
  • Thanked: 839 times
    • View Profile
    • http://www.asamm.com
  • Device: Pixel 5, A12
Re: Routing over online/internal BRouter
« Reply #47 on: April 26, 2021, 14:15:58 »
Perfect, second point (from the BRouterWorker) was missing.

Together with some other minor changes, it seems to work correctly now, thanks.
- Official help (ideas, questions, problems): help.locusmap.eu
- Advanced topics, sharing of knowledges: you're here!
- LM 4 Beta download, LM 4 final download