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
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
add a comment |
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
add a comment |
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
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
here-api
asked Mar 21 at 13:42
teshmekiteshmeki
311
311
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
You should be able to get them from NavigationManger.getTta(Route.TrafficPenaltyMode mode, boolean wholeRoute) and NavigationManger.getDestinationDistance()
I got but with some changeslong 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
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
You should be able to get them from NavigationManger.getTta(Route.TrafficPenaltyMode mode, boolean wholeRoute) and NavigationManger.getDestinationDistance()
I got but with some changeslong 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
add a comment |
You should be able to get them from NavigationManger.getTta(Route.TrafficPenaltyMode mode, boolean wholeRoute) and NavigationManger.getDestinationDistance()
I got but with some changeslong 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
add a comment |
You should be able to get them from NavigationManger.getTta(Route.TrafficPenaltyMode mode, boolean wholeRoute) and NavigationManger.getDestinationDistance()
You should be able to get them from NavigationManger.getTta(Route.TrafficPenaltyMode mode, boolean wholeRoute) and NavigationManger.getDestinationDistance()
answered 2 days ago
Jithin KrishnanJithin Krishnan
844156
844156
I got but with some changeslong 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
add a comment |
I got but with some changeslong 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
add a comment |
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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