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.

We all know that 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.

I was wondering if there is 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..

Thank you in advance!

  • This question has been just asked a few days ago: gis.stackexchange.com/questions/41081/… (Probably the question title isn't the best, but you will see that it's the same problem.) – dkastl Nov 19 '12 at 15:26
  • possible duplicate of How to add offsets to the route? – R.K. Nov 24 '12 at 2:11
  • There is a subtle difference, @R.K., that may be important: the apparent duplicate asks about "offsets," which usually are points not on the network at all, whereas this question appears to ask about points that are on the network itself. – whuber Nov 24 '12 at 16:33
  • Hey Daniel (@dkastl) I have read your workshop (very good by the way), I am with this issue. A have read the question you mentioned, and your answer on it. I have to say that I didn't understand how to use that solution (actually I am a beginner on it) and there is no documentation about that. Would you recommend any documentation, or usage demonstration of that? Or would you recommend any web based (open source) routing software with visualization (database based)? Thanks a lot! – Roberto Ferraz Dec 12 '12 at 19:02
  • You need use tsrp, as suggested by amball, support offset on the edge. gis.stackexchange.com/a/152145/22366 – Juan Carlos Oropeza Dec 7 '16 at 18:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.