0

I´m using pgr_dijkstra one to one and it´s ok, but error occour when I try one to many or many to many. I´m typing:

SELECT * FROM pgr_dijkstra('select id, source ,target, cost from edge',
                           35681, 
                           ARRAY[34450,34926], 
                           FALSE);

The message is:

SQL Error [42883]: ERROR: do not exist the funcion pgr_dijkstra(unknown, integer,integer[],boolean)

May tell me where is the error?

2
  • What version of pgr_routing do you have installed?
    – Cushen
    Commented Mar 1, 2018 at 0:31
  • Check specs for your version of pgrouting - there was a major changes in this function parameters - there is possibility that you don't need last one.
    – Jendrusk
    Commented Mar 1, 2018 at 8:39

1 Answer 1

1

try to use the pgr_bdDijkstra function. This function generates a route from one origin to several destinations.

--Exemple    
SELECT * FROM pgr_bdDijkstra('select id, source ,target, cost from edge',
                           35681, 
                           ARRAY[34450,34926], 
                           FALSE);

I hope it helped you

2
  • Ok Rogerio, thank you very much
    – Marcio
    Commented May 30, 2019 at 15:02
  • @Marcio, it is useful when providing feedback letting other users know if the answer was helpful or not (and if not, why). Please, read gis.stackexchange.com/help/someone-answers. Tks. Commented Jun 8, 2019 at 0:30

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.