I have roads(edge) table and hospitals(point of interest) table in pgRouting database.

Now I want to take user location or any point location that user inputs as a starting node and ending node must be a hospital location

How can I do this?

  • did you try what I suggested in your other question? the withPoints function family is your best bet at this, and this is basically the usecase for what that other question aims at solving. – geozelot Jun 14 '18 at 17:36
  • Yes I did but I am confused with start_vid and end_vid parameters, I want start_vid as user desired location not the POI. – Abdullah Jun 15 '18 at 18:33

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.