A a converter and a routing engine for Openstreetmap data

learn more… | top users | synonyms

4
votes
2answers
408 views

Why is any pgr_* routing function taking forever based on OSM data in an pgrouting enabled DB

I loaded the German OSM dataset into the pgrouting DB by using osm2po 4.7.7. Everything works fine i have osm2po set up via it's config and it's working like a charm through it's Java part. I had the ...
2
votes
2answers
255 views

Is it possible to get the points used for the convex hull in osm2po?

I have a non-convex hull algorithm that I want to use for an app. With OSM2PO, it's possible to get a convexHull, but is there a way to get the points before the hull is constructed? More, it would ...
2
votes
1answer
313 views

How to control what kind of tags / flags are imported with osm2po?

With the help of osm2po, I have successfully inserted the contents of the italian files (italy.osm.pbf) in a pgrouting-enabled database (postgresql 8.4) It displays fine in Qgis, using rule based ...
11
votes
3answers
563 views

How to add offsets to the route?

Edited: I want to ilustrate my question. Suppose that you're in "Point A" and want to go to "Point B". This points wouldn't be in "at_2po_4pgr" table cause aren't source/targets nodes. Then, I ...
3
votes
3answers
306 views

How to extend OSM2PO with ferry durations?

I would like to have the ferry duration [1] taken into account, when transforming OSM files to SQL. But I'm not sure if I need to write my own waytagresolver, or it is possible to simply add it to ...
4
votes
2answers
498 views

Can I also import road type using osm2po?

I have imported the entire UK OSM dataset using the excellent osm2po. The metatdata of the imported table is shown below and my question is whether any of the columns map to ROAD TYPE. If not may I ...
2
votes
1answer
262 views

How are link costs calculated from osm.pbf?

I imported osm.pbf data into postgis using osm2po. The table I obtained (at_2po_4pgr) includes cost data. I would like to know how these costs have been calculated. thank you
2
votes
1answer
293 views

Is there a way to route different vehicles within OSM2PO?

Is there a way to route different vehicles within OSM2PO? I would like to start the service with a config file and then turn different flags on/off depending on whether the route is for a bike or a ...
1
vote
3answers
633 views

How to speed up osm2po when using as java lib?

I'am trying to utilize osm2po as java lib for calculation of distances matrix between some set of points (lat/lon) and for each pair of points I call the following method that code is based on sample ...
1
vote
1answer
367 views

Does OSM2PO take into consideration turn restrictions?

It is supposed that for using Shooting star function in pgrouting, we need to have RULE and TO_COST fields in our table, but OSM2PO hasn't created those fields. what must i do for OSM2PO takes into ...
3
votes
3answers
262 views

How to visualize the vertices of a graph in QGIS?

I tried to visualize the graph generated by osm2po and rendered that graph in qgis. Now what I am trying to do is plot the vertices in the graph. So that I can visually see where the nodes/vertices ...
2
votes
1answer
266 views

Unreachable vertex

I'm developing an application for academic purposes that mainly gives to the user a recommended itinerary for a previously introduced preferences (Gastronomy, Leisure,etc.). For this purpose, I use ...
2
votes
1answer
174 views

How to include highways type track or service in osm2po?

What must I do for osm2po to take into consideration highways type track or service? I have processed one file and in the results with QGIS I can't see those types of highways. Thanks!
2
votes
3answers
204 views

Looking for TSP with Target different from Source

I know the TSP (traveling sales person) in osm2po is beta but it works quite well. Is there a way to designate a final target location that is different from the initial source location. In other ...
1
vote
1answer
141 views

osm2po: import multiple .osm files for disparate regions?

Does osm2po support importing multiple OpenStreetMap files into the same Postgres/PostGIS database (i.e., to be used for routing)? If yes, can the OSM files be for geographic regions that are not ...
1
vote
1answer
136 views

osm2po service with custom router

I want to make custom router which while calculating route costs, would take into account additional features. Here is the use case: Lets imagine paid motorway. Lets suppose there are 2 toll points. ...
1
vote
1answer
80 views

Is OSM_ID also part of osm2po graph?

I would like to use osm2po as a routing engine/library. My problem is that in geojson response, there is no osm_id value returned, only id field which, if I assume correctly is not a fixed value. I ...
0
votes
1answer
63 views

Graph.traverse() maximum targetIds?

First of all, huge thanks to Carsten for writing this amazing tool. I love it. I am using the function traverse(Graph graph, int sourceId, int[] targetIds, float maxCost, ...
0
votes
1answer
59 views

What does `findCloseEdges` do in osm2po?

I have something like this: int[] edges = graph.findCloseEdges(lat, lon, 1); // returns only one element RoutingResultSegment rrs = graph.lookupSegment(edges[0]); LatLon[] latlons = rrs.getLatLons() ...
0
votes
1answer
116 views

what is the main idea of new (since osm2po ver 4.7.7) MultiLevelGridRouter

in the new osm2po v4.7.7 release notes I see that there is new MlgRouter (MultiLevelGridRouter) "which is an at least five times faster DefaultRouter". Could someone clarify why it's so fast (what ...