Git Product home page Git Product logo

Comments (14)

afischerdev avatar afischerdev commented on July 24, 2024 1

A new idea of a typed waypoint:

type short description
changing profile c:car-fast A point to change the rules of routing with a new profile.

This could allow routing combinations like

  • car-fast (to get out of the city) and car-eco (to enjoy the countryside)
  • train/hike to spend a nice day out in the mountains
  • ...

The result is a routing file with two routes included:

 <trk>
  <src>brouter_car-fast_0</src>
  <type>car</type>
...
 </trk>
 <trk>
  <src>brouter_car-eco_0</src>
  <type>car</type>
...
 </trk>

What do you think?

from brouter.

afischerdev avatar afischerdev commented on July 24, 2024 1

@devemux86

do you mean that we will be able to mix the BRouter profiles in 1 route request?

That was the basic idea on the new type of waypoint.
It could look like this

...&profile=car-fast&lonlats=1.2345,50.12345;1.345,50.345,c:car-eco;1.456,50456...

I haven't tried it yet, just an idea for now.

from brouter.

devemux86 avatar devemux86 commented on July 24, 2024

The straight line becomes a 3rd type?
Shouldn't it able to work together with any point type (via | shaping)?

Other routers allow to set a straight line on any point: via or shaping or start / end.
Meaning they set separately the point type and the point weight, e.g. straight line.

from brouter.

afischerdev avatar afischerdev commented on July 24, 2024

@devemux86
I see the direct type as a variant of the meeting point. When it is not the first point it has a previous segment and it starts with the end point of this segment.
Sample:
We have 1.0,1.0 ; 1.1,1.1,d ; 1.2,1.2
BRouter calculates segment by segment, means it starts with 1.0,1.0 ; 1.1,1.1. The result for a 'normal' segment is matched to a way. Then 1.1,1.1,d to1.2,1.2 is routed direct.

That is the way it goes at the moment. Real sample here

from brouter.

devemux86 avatar devemux86 commented on July 24, 2024

@afischerdev do you mean trk or trkpt?
(you mention waypoint but the example has trk)

from brouter.

afischerdev avatar afischerdev commented on July 24, 2024

@devemux86
I mean two trk in one file as a result of this logic. One trk is routed with the first profile, the next is routed with another.
The waypoint is 'only' the point of change for the profiles.

from brouter.

devemux86 avatar devemux86 commented on July 24, 2024

A gpx can contain multiple trk for multiple routes.
As the src and type can be used for the router info and the travel mode, it would be useful.

@0709wiwiwi any comments?

from brouter.

poutnikl avatar poutnikl commented on July 24, 2024

LocusMap has the feature for this in the route planner, where you can change the profile before any addition of next route segment.

from brouter.

0709wiwiwi avatar 0709wiwiwi commented on July 24, 2024

When I think of multitracks, I spontaneously think of a triathlon route.
Three consecutive tracks for a total different activity.
I hope by waypoints effectively meant are routepoints.

And since Locus is mentioned apart notice a very important difference.
See the attachment txt.
Cruiser navigatietrack.txt

from brouter.

poutnikl avatar poutnikl commented on July 24, 2024

Obviously, the needs differ dramatically, if the planning is done on the web or the target application. I do almost exclusively the latter.

from brouter.

0709wiwiwi avatar 0709wiwiwi commented on July 24, 2024

See the attachment txt.

One more thing.
What should be obtained through the trkpt scr profile tag is:
Through a trk type profile change you can so recalculate the (navtrk) navigation track.
Track sections ending on a section target Via or shaping trkpt inclusive src tag are not recalculated.
Like a beeline section which should definitely to be excluded from any track recalculation.

from brouter.

afischerdev avatar afischerdev commented on July 24, 2024

@poutnikl

LocusMap has the feature for this in the route planner

Good to know that. I think this is done by two (or more) calls an BRouter api

@0709wiwiwi
Triathlon is a nice sample on that.

I hope by waypoints you mean route points.

I mean the incoming points for the BRouter calculation. Route point is a result point of the calculation - for me.
But sorry we don't have a gpx input at the moment.

from brouter.

devemux86 avatar devemux86 commented on July 24, 2024

I mean the incoming points for the BRouter calculation.

@afischerdev do you mean that we will be able to mix the BRouter profiles in 1 route request?

Request a route with N segments: 1: car-fast, 2: trekking, 3: hiking, ...
So the waypoints in the request will have extra field(s)?

from brouter.

poutnikl avatar poutnikl commented on July 24, 2024

@poutnikl

LocusMap has the feature for this in the route planner

Good to know that. I think this is done by two (or more) calls an BRouter api

AFAIK, LocusMap perfoms the series of sequential BRouter API calls for each route segment separately, including the profile to be used ( passed by API too). Then it joins the provided data into the single calculated route, that is eventually used or saved.

from brouter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.