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

Wrong snap on streets #775

Closed
benjamin-rty opened this issue Oct 31, 2013 · 5 comments
Closed

Wrong snap on streets #775

benjamin-rty opened this issue Oct 31, 2013 · 5 comments

Comments

@benjamin-rty
Copy link

When I make a route over my own netwerk and I want to make a route from green to red, the red point is snapped totaly wrong. The resulting route goes south,

screenshot172

@DennisOSRM
Copy link
Collaborator

Strange indeed. Got a permalink that is close to the area/route?

@benjamin-rty
Copy link
Author

Dear Dennis,

This is the network that is routable is the direction of the blue arrow.
The selected lines are the lines I get as result.

Strange is, when I make the network routable in all directions, I do not get a strange routing.

This is my way_function for routing in one direction

function way_function (way)

local name = way.tags:Find("name")
local id = way.tags:Find("id")

local resft = way.tags:Find("res_ft")
local restf = way.tags:Find("res_tf")

--direction
way.direction = Way.bidirectional

if resft == "0.00" and restf == "0.00" then
    return 0
elseif resft == "0.00" then
    way.direction = Way.opposite
elseif restf == "0.00" then
    way.direction = Way.oneway
end

way.type = 1

return 1

end

screenshot173

@DennisOSRM
Copy link
Collaborator

Closing here in favor of #770

@DennisOSRM
Copy link
Collaborator

@bvbever Please check with the latest code from develop branch. This issue should be fixed now.

@benjamin-rty
Copy link
Author

@DennisOSRM indeed ! Thanks !

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

No branches or pull requests

2 participants