Please or Register to create posts and topics.

Can an imported GPX set Scenic's route mode (Fastest/Shortest/Curvy)?

Hi Guido, I build a group-ride planning tool (Waylead) that exports GPX for Scenic, using your gpxurl import. A few questions about routing on import:

 

1. Route mode from the file. Is there any way for a GPX to say which route mode (Fastest/Shortest/Curvy, vehicle type) Scenic should calculate an imported route with? Garmin's trp:CalculationMode and trp:TransportationMode, a Scenic-specific extension, or a parameter on import/gpxurl? The API docs list routeMode/vehicleType only on the navigate endpoints. In our tests, a route with sparse vias took a freeway the planner had deliberately avoided, until the rider changed the app's route mode by hand.

 

2. How vias are calculated. We've found that each gpxx:rpt imports as a silent via (which forbids a U-turn), and each rtept as a stop. Is that the intended contract, and is it stable?

 

3. Limits. Is there a maximum number of vias (rpts) per route or per import? We'd like to send a dense set, roughly 150 per day, so a route holds its line in any mode.

 

4. Turnarounds. Is there a way to mark a silent via that allows a U-turn, or is announcing it as a stop the right approach?

 

Happy to share test files. Thanks for Scenic, and for publishing the API.

  1. At the moment this is not supported. I'd recommend adding via points to force the route to take the roads you want. In the end, the routing algorithms between the engine you are using and the engine that Scenic uses will be different, so there is no guarantee that Scenic will calculate the same route as your engine is. Even if you'd use the same engine (Scenic uses Valhalla), customizations and configurations will make it different.
  2. Stops become Valhalla type 'break' and vias become Valhalla type 'through': https://valhalla.github.io/valhalla/api/route/api-reference/
  3. Limit is 150 waypoints (incl. start and stop)
  4. There is no way to do that at the moment. I'd mark it as a stop for now.

 

Honestly, the Scenic API is relatively old and has not really been kept up to date. What I'd recommend, and what we are doing with the tour planning tool we're developing, is allowing to add Scenic share links to routes. I.e. create the routes in Scenic and then link those routes in the tour platform. Happy to talk more about this if you'd like. Just shoot me a direct email.

If you're enjoying Scenic and are happy with the support, please leave a nice rating in the App Store. It would mean a lot to me ❤️