After execute all steps from this pgRouting tutorial, now I have a map that creates and displays routes, but as the routing methods rely on parameters representing vertex Ids that was created using osm2pgrouting, my route always starts either after or before the place I selected on the map, and ends on the same way.. after or before the place it should end.

There are tools that are based on pgrouting, that displays the route ending and starting exactly where the user clicked, not in the nearest node.

Is there a way to create more nodes between the current ones, so I would reduce the distance between nodes to few meters, what would fix it, or if there is another solution to my issue?



Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Browse other questions tagged or ask your own question.