geojson-path-finder icon indicating copy to clipboard operation
geojson-path-finder copied to clipboard

Is it possible to add a 'level' info?

Open lmdc45 opened this issue 6 years ago • 3 comments

for instance I would have

  • ground level:0
  • bridge:1
  • Underground:-1

At this stage I got small issues with some path going from under the bridge straight to the bridge, as lines are crossing...

I am trying to eliminate common/near vertexes on these locations as a way to solve it, however was wondering if it would be possible another way.

Thanks

lmdc45 avatar Oct 23 '19 05:10 lmdc45

Hi, it would definitely be interesting to incorporate something like this, but at the moment there is no support: all vertices that are sufficiently close will be considered as a node in the graph.

I think changing this would only need to affect the topology.js function, which is responsible for turning the LineStrings into nodes and edges.

perliedman avatar Oct 23 '19 07:10 perliedman

Ok thanks. I am not an expert so will try not to touch topology.js. I will try to work on the geojson data first, to avoid close nodes in intersection if different levels.

lmdc45 avatar Oct 26 '19 02:10 lmdc45

In fact this seems quite similar to issue #25 , will look at adding z coords

lmdc45 avatar Oct 28 '19 00:10 lmdc45