Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LineCoding on a single edge fails #84

Open
hcoppen opened this issue Jan 12, 2018 · 3 comments
Open

LineCoding on a single edge fails #84

hcoppen opened this issue Jan 12, 2018 · 3 comments
Assignees
Labels
Milestone

Comments

@hcoppen
Copy link

hcoppen commented Jan 12, 2018

BuildLine() fails with 'First edge does not match first vertex.' if coding is done on a single edge.

@xivk
Copy link
Contributor

xivk commented Jan 25, 2018

@hcoppen Could this be due to the edgeid-bug in Itinero I fixed recently? Can you given me a piece of code to reproduce or does it fail on any edge?

@xivk xivk self-assigned this Jan 25, 2018
@xivk xivk added the bug label Jan 25, 2018
@xivk xivk added this to the Version 1.1 milestone Jan 25, 2018
@hcoppen
Copy link
Author

hcoppen commented Jan 29, 2018

As fare as I know it fails on any single edge

@dirkjot
Copy link

dirkjot commented Nov 21, 2020

I know this is an old issue, but it still seems to throw that error. I was able to encode some single edge openLRs, but others fail.

Fails:

            // sentier de l'esperance ,   2118 Luxembourg        
           var line = coder.BuildLine(new Itinero.LocalGeo.Coordinate(49.61307357599604f, 6.138820052146912f),
               new Itinero.LocalGeo.Coordinate(49.61323346501051f, 6.139544248580933f));

I tried this with the supplied pbf file and with a fresh file downloaded from geofabrik.

Works:
This one is nearby and also one edge, but it works: CwRd4CNHXgonBgH2AIIKdRgL

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants