Comments (5)
Those are the options that I'm using when a route is calculated:
var carOptions = CarOptions()
carOptions.routeOptions.enableTolls = true
carOptions.routeOptions.departureTime = Date()
carOptions.routeOptions.optimizationMode = .fastest
carOptions.avoidanceOptions.roadFeatures = [.ferry]
from here-sdk-examples.
Hi @LaurentiuUngur, can you provide more details how you calculate the same route twice? Do you hard-code the coordinates in the code? Or do you use the app to tap the same places? Do you clear the map beforehand?
It would be great if you can add the exact steps to reproduce the error. Ideally, with the coordinates of the routes. Thank you.
from here-sdk-examples.
Hi @HERE-SDK-Support-Team. I'm not hardcoding the coordinates in the code.
The flow is the following:
- On screen A I'm choosing origin and destination addresses
- I'm pushing screen B which has the map where I'm calculating the route from origin to destination (chosen from screen A) and I want to show the calculated route as preview to the user
- If I go back to screen A and select same origin and destination as before, the route won't be calculated anymore.
I'll attach the code used in the app that calculates the route (with hardcoded coordinates for testing purpose):
Thank you !
from here-sdk-examples.
@HERE-SDK-Support-Team same happens in newly released SDK v4.16.1.0
from here-sdk-examples.
Hi @LaurentiuUngur, in your createRoute()
method you also initialize the RoutingEngine
. Calculating a route is done asynchronously, that means, you need to keep a reference of the engine outside of the scope of the method. Furthermore, when you call the method multiple times, you probably want to reuse an existing instance of the RoutingEngine
. Hopefully, this solves your issues. If not, please leave a reply. Thank you!
from here-sdk-examples.
Related Issues (20)
- Generate Here MAP route image with source and destination location marker HOT 1
- Navigation on Android Auto HOT 1
- Here Map Marker Click Isssue #504 HOT 4
- Missing vehicle restrictions function (Explore Edition) HOT 3
- Getting HERE Places with null coordinates HOT 1
- Crash due to library not being able to load on OnePlus Nord 3 5G HOT 1
- [ERROR] sdk-AppContextProvider - SDK NativeEngine doesn't exist during initialisation! HOT 1
- Crash in ConsentActivity.onCreate HOT 2
- Unable to find option to download Navigate Edition SDK HOT 1
- Here Map(Navigate framework) version - 4.15.4.0 - App not getting build - following error Undefined symbol: _$sSSs5Error7heresdkMc HOT 1
- Android, Navigate Edition: MapView is not life cycle proof HOT 1
- Maploader.dart file not found in v 4.17.3 for offline use HOT 1
- Android's CameraKeyframeTracks example is not working at API 28 (Android 9.0) HOT 1
- [android auto] Pan not work HOT 1
- Swift.String : Swift.Error HOT 3
- [Android - Navigate SDK] Map Marker Drag HOT 3
- Different line layout HOT 1
- Custom Map marker Layering HOT 1
- Change marker HOT 1
- [Android - Explore Edition] The map blink and throwing error HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from here-sdk-examples.