Skip to main content
3 votes

Sequenced path using pgrouting (going through the POI of the user)

If you know, that the route should go through the blue point, then you could use pgr_dijkstraVia: https://docs.pgrouting.org/latest/en/pgr_dijkstraVia.html#pgr-dijkstravia SELECT * FROM ...
dkastl's user avatar
  • 4,796
2 votes
Accepted

PGrouting costs

The cost of pgRouting is used for the cost function. In your case the cost is "score * penalty". The pgr_dijkstraCost() function is mainly for convenience, for example when you request multiple ...
dkastl's user avatar
  • 4,796
2 votes
Accepted

How to get path cost in A* shortest path finder of GeoTools?

It appears that AStarNodes store the cost so far in their g field so something like: cost = ((AStarNode) p.getLast()).getG(); should work or if you intend to use the whole path anyway you could do ...
Ian Turton's user avatar
  • 82.2k
1 vote

Create x1,y1,x2,y2 columns of pgRouting a* algorithm from a GeoJSON/shapefile

You can use a combination of ST_StartPoint / ST_EndPoint with ST_X / ST_Y. Either you add new columns (x1, x2, y1, y2) to your edge table or you change the aStar query with the aforementioned ...
Timothy Dalton's user avatar
1 vote

Ambiguous values on OSM to calculate optimal path: Which value should I use?

For pgRouting functions you need to use the attributes that define your network topology. The network pgRouting uses has road links (unique id) with start and end node ID's (source and target node), ...
dkastl's user avatar
  • 4,796

Only top scored, non community-wiki answers of a minimum length are eligible