Getting current distance and time during navigation in here map, Android SDKRouting getIcon missing from api v 2.5.4NewInstructionEventListener skipping some stop over maneuversHow to get distance to waypoint in Navigation ManagerHERE maps SDK iOS - current road element is always nilHere Map SDK OffscreenRenderer add map route glitchHere maps navigation - trace left behindDraw route between points using Here iOS SDK in Swift or Objective-CHERE Android SDK NavigateManager simulate without Map is not giving maneuversHow to provide custom Maneuver Icon in HERE Maps Android premium sdk?Here Maps route : get crossed cities

What (else) happened July 1st 1858 in London?

Can I Retrieve Email Addresses from BCC?

Ridge Regression with Gradient Descent Converges to OLS estimates

How do I extrude a face to a single vertex

How can "mimic phobia" be cured or prevented?

Indicating multiple different modes of speech (fantasy language or telepathy)

Transformation of random variables and joint distributions

Proving a function is onto where f(x)=|x|.

Why is Arduino resetting while driving motors?

Freedom of speech and where it applies

Can someone explain how this makes sense electrically?

THT: What is a squared annular “ring”?

Bob has never been a M before

What does the Rambam mean when he says that the planets have souls?

Drawing a topological "handle" with Tikz

A Permanent Norse Presence in America

Can a significant change in incentives void an employment contract?

What does this horizontal bar at the first measure mean?

On a tidally locked planet, would time be quantized?

Why did the EU agree to delay the Brexit deadline?

Do the concepts of IP address and network interface not belong to the same layer?

Greco-Roman egalitarianism

Can the Supreme Court overturn an impeachment?

Did arcade monitors have same pixel aspect ratio as TV sets?



Getting current distance and time during navigation in here map, Android SDK


Routing getIcon missing from api v 2.5.4NewInstructionEventListener skipping some stop over maneuversHow to get distance to waypoint in Navigation ManagerHERE maps SDK iOS - current road element is always nilHere Map SDK OffscreenRenderer add map route glitchHere maps navigation - trace left behindDraw route between points using Here iOS SDK in Swift or Objective-CHERE Android SDK NavigateManager simulate without Map is not giving maneuversHow to provide custom Maneuver Icon in HERE Maps Android premium sdk?Here Maps route : get crossed cities













0















I am getting distance and time when drawing the route



double distance = m_mapRoute.getRoute ().getLength ();
double time = route.getTtaExcludingTraffic(Route.WHOLE_ROUTE).getDuration ();


Now the question is, i need to know how much distance and time is left to the finish while driving. I don't see any function in maneuver that provides this.










share|improve this question


























    0















    I am getting distance and time when drawing the route



    double distance = m_mapRoute.getRoute ().getLength ();
    double time = route.getTtaExcludingTraffic(Route.WHOLE_ROUTE).getDuration ();


    Now the question is, i need to know how much distance and time is left to the finish while driving. I don't see any function in maneuver that provides this.










    share|improve this question
























      0












      0








      0








      I am getting distance and time when drawing the route



      double distance = m_mapRoute.getRoute ().getLength ();
      double time = route.getTtaExcludingTraffic(Route.WHOLE_ROUTE).getDuration ();


      Now the question is, i need to know how much distance and time is left to the finish while driving. I don't see any function in maneuver that provides this.










      share|improve this question














      I am getting distance and time when drawing the route



      double distance = m_mapRoute.getRoute ().getLength ();
      double time = route.getTtaExcludingTraffic(Route.WHOLE_ROUTE).getDuration ();


      Now the question is, i need to know how much distance and time is left to the finish while driving. I don't see any function in maneuver that provides this.







      here-api






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 21 at 13:42









      teshmekiteshmeki

      311




      311






















          1 Answer
          1






          active

          oldest

          votes


















          0














          You should be able to get them from NavigationManger.getTta(Route.TrafficPenaltyMode mode, boolean wholeRoute) and NavigationManger.getDestinationDistance()






          share|improve this answer























          • I got but with some changes long minutes = (m_navigationManager.getTta(Route.TrafficPenaltyMode.OPTIMAL, true).getDuration () % 3600) / 60; But with some problems, if minutes are greater than 60 then it gives me wrong minutes... example if the whole route is 64 minutes then on navigation this function returns 8 minutes

            – teshmeki
            2 days ago











          Your Answer






          StackExchange.ifUsing("editor", function ()
          StackExchange.using("externalEditor", function ()
          StackExchange.using("snippets", function ()
          StackExchange.snippets.init();
          );
          );
          , "code-snippets");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "1"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55281813%2fgetting-current-distance-and-time-during-navigation-in-here-map-android-sdk%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          0














          You should be able to get them from NavigationManger.getTta(Route.TrafficPenaltyMode mode, boolean wholeRoute) and NavigationManger.getDestinationDistance()






          share|improve this answer























          • I got but with some changes long minutes = (m_navigationManager.getTta(Route.TrafficPenaltyMode.OPTIMAL, true).getDuration () % 3600) / 60; But with some problems, if minutes are greater than 60 then it gives me wrong minutes... example if the whole route is 64 minutes then on navigation this function returns 8 minutes

            – teshmeki
            2 days ago
















          0














          You should be able to get them from NavigationManger.getTta(Route.TrafficPenaltyMode mode, boolean wholeRoute) and NavigationManger.getDestinationDistance()






          share|improve this answer























          • I got but with some changes long minutes = (m_navigationManager.getTta(Route.TrafficPenaltyMode.OPTIMAL, true).getDuration () % 3600) / 60; But with some problems, if minutes are greater than 60 then it gives me wrong minutes... example if the whole route is 64 minutes then on navigation this function returns 8 minutes

            – teshmeki
            2 days ago














          0












          0








          0







          You should be able to get them from NavigationManger.getTta(Route.TrafficPenaltyMode mode, boolean wholeRoute) and NavigationManger.getDestinationDistance()






          share|improve this answer













          You should be able to get them from NavigationManger.getTta(Route.TrafficPenaltyMode mode, boolean wholeRoute) and NavigationManger.getDestinationDistance()







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered 2 days ago









          Jithin KrishnanJithin Krishnan

          844156




          844156












          • I got but with some changes long minutes = (m_navigationManager.getTta(Route.TrafficPenaltyMode.OPTIMAL, true).getDuration () % 3600) / 60; But with some problems, if minutes are greater than 60 then it gives me wrong minutes... example if the whole route is 64 minutes then on navigation this function returns 8 minutes

            – teshmeki
            2 days ago


















          • I got but with some changes long minutes = (m_navigationManager.getTta(Route.TrafficPenaltyMode.OPTIMAL, true).getDuration () % 3600) / 60; But with some problems, if minutes are greater than 60 then it gives me wrong minutes... example if the whole route is 64 minutes then on navigation this function returns 8 minutes

            – teshmeki
            2 days ago

















          I got but with some changes long minutes = (m_navigationManager.getTta(Route.TrafficPenaltyMode.OPTIMAL, true).getDuration () % 3600) / 60; But with some problems, if minutes are greater than 60 then it gives me wrong minutes... example if the whole route is 64 minutes then on navigation this function returns 8 minutes

          – teshmeki
          2 days ago






          I got but with some changes long minutes = (m_navigationManager.getTta(Route.TrafficPenaltyMode.OPTIMAL, true).getDuration () % 3600) / 60; But with some problems, if minutes are greater than 60 then it gives me wrong minutes... example if the whole route is 64 minutes then on navigation this function returns 8 minutes

          – teshmeki
          2 days ago




















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55281813%2fgetting-current-distance-and-time-during-navigation-in-here-map-android-sdk%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

          Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

          Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript