Re: [OSRM-talk] routing without a path

2019-11-28 Thread Nikhil VJ
Hi Peter,

At small distances we also experience unsuitably long paths drawn due to
various map artefacts that don't represent the on-ground situation fully.
Example: people can cross the road, they don't need to go that far for the
crossing (side question: is there an OSM tag for telling that this road has
"free crossing" all along it and people do not need to go to a specific
point just to cross?). Or, take the nearest entrance to the building - they
don't need to go all around the place from the outside.

We decided to do some post-processing instead of trying to mess with the
router.
Calculate D = Displacement by latitude-longitude pairs (as-the-crow-flies
simple Euclidean geometry calculation)

If D <= 500m, {
If the path given by OSRM is greater than D x 10 (or pick a suitable
multiplier), {
Then junk the path and just plot a dotted line from A to B. Assume
half speed for this portion.
  }
}

In your case you may have to divide the path you have into chunks and
evaluate each chunk.
But I have no clue on how to make this business accurate. All the best!

--
Cheers,
Nikhil VJ
https://nikhilvj.co.in


On Thu, Nov 28, 2019 at 7:09 PM Peter Schneider-Kamp via OSRM-talk <
osrm-talk@openstreetmap.org> wrote:

> Hi everyone,
>
>
>
> We are starting to use OSRM in a research project for autonomous drones.
> The drones should normally fly along existing paths (i.e. ways from
> OpenStreetMap). But there are situations where the drone needs to fly
> without a path between two nodes (as it otherwise would have to make a
> detour of many kilometres).
>
>
>
> We have a custom profile that works well for routing along the kind of
> paths we want to route along. But is there any way that we can tell OSRM to
> just go from one node to another close-by node without a path?
>
>
>
> So far the only idea is a bit of a hack: add a new type of path between
> all close-by nodes and add this type of path to the profile (with a lower
> speed, enabling its use but discouraging it).
>
>
>
> Any other ideas?
>
>
>
> Any inputs/ideas/pointers are appreciated!
>
>
>
> Cheers,
>
> Peter
> ___
> OSRM-talk mailing list
> OSRM-talk@openstreetmap.org
> https://lists.openstreetmap.org/listinfo/osrm-talk
>
___
OSRM-talk mailing list
OSRM-talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/osrm-talk


[OSRM-talk] routing without a path

2019-11-28 Thread Peter Schneider-Kamp via OSRM-talk
Hi everyone,

We are starting to use OSRM in a research project for autonomous drones. The 
drones should normally fly along existing paths (i.e. ways from OpenStreetMap). 
But there are situations where the drone needs to fly without a path between 
two nodes (as it otherwise would have to make a detour of many kilometres).

We have a custom profile that works well for routing along the kind of paths we 
want to route along. But is there any way that we can tell OSRM to just go from 
one node to another close-by node without a path?

So far the only idea is a bit of a hack: add a new type of path between all 
close-by nodes and add this type of path to the profile (with a lower speed, 
enabling its use but discouraging it).

Any other ideas?

Any inputs/ideas/pointers are appreciated!

Cheers,
Peter
___
OSRM-talk mailing list
OSRM-talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/osrm-talk