I downloaded latest data from Geofabrik and ran the data through osm2po. osm2po web service works fine. I tried to find the route from node 103843 to 170597 and got the following route:
However, using pgr_dijkstra() with data in sql file produced by osm2po, I got a totally different route with different start and end point.
To check whether my query is the problem, I used pgrouting layer in QGIS and got the same result.
Interestingly, I found that the route is not correct, as it doesn't always go along the road network.
How can I make pgrouting produces the same result as osm2po web service?