A a converter and a routing engine for Openstreetmap data

learn more… | top users | synonyms

3
votes
1answer
226 views

Don't route through bollards, concrete blocks, etc with osm2po

Is it possible to prevent road segments being used when these are blocked by bollards, concrete blocks or the like? I have one example where there the road Solhøjvej is blocked with a so called ...
1
vote
0answers
104 views

How to use OSM2PO for transit routing?

I'm using OSM2PO (4.6.9) for "classic" routing, I mean highway network and everything works fine. Now, I want to use it to route in a "transport" network, a bus network for instance. But I want the ...
0
votes
2answers
96 views

Some highways segments ignored by osm2po?

Where i can read why some roads/segments are disappear from routing? We are trying to comment all "wtr.deny" rules in config file, but nothing changed. Examples added as links bellow. Screenshot1 ...
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 ...
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 ...
0
votes
2answers
204 views

error while loading osm2po routing sql-script into PostgreSQL

please advice what could be wrong in my situation: I succesfully generated sql-file using osm2po I tried to run it within PostgreSQL and got the following error: ********** Error ********** ERROR: ...
1
vote
1answer
91 views

Custom osm2po postprocessor to generate a node file and a way file

For a software component were using we need to provide 2 input files. One with a list of nodes (nodeId, lat, lon) and one with ways (fromNodeId, toNodeId, oneway, maxSpeed, lenght). To create these ...
2
votes
1answer
250 views

Updating routing graph based on GIS changes in DB

I am using Osm2PO for route finding which reads a graph file created from a pbf file downloaded from OpenStreetMap. I have my own GIS database where updates may be applied to the data. I would like ...
0
votes
1answer
152 views

How are the speed limits set in osm2po?

Using osm2po I found a problem. In the configuration file "osm2po.config" I can set the various values ​​of speed limits for each road type but for example for this type of street ...
3
votes
3answers
1k views

How do I apply Dijkstra's algorithm in Python with PostGIS data?

I have currently parsed OSM data, from a PBF file, into a pgRouting database with the use of osm2po, an excellent parsing tool. I don't however want to use the algorithms provided by pgRouting and ...
1
vote
2answers
202 views

How to change the function of cost of osm2po?

As the column 'kmh' shows speed limits wrong for my city, and I didn't want to modify the configuration file of osm2po for each type of road, is there a way to change the cost function? I wish: cost= ...
2
votes
2answers
254 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 ...
1
vote
2answers
165 views

Why won't osm2po setup table correctly?

OK, I have no idea what's going on. I'm using a Mac and successfully installed pgRouting. I used osm2po on some data, which created a sql file. I imported the sql file into a pgRouting database and ...
2
votes
1answer
207 views

How do I configure osm2po.config to parse both car and foot routes?

I have tried to play around with the osm2po.config file, to parse both car and foot routes but have had little success. Could someone please tell me how to do it? Thanks
1
vote
1answer
301 views

calculate costs based on way difficulty

I am using Osm2Po to find routes between two points. I am trying to find routes based on the difficulty specified by the user. Basically, I would like to calculate the cost based on some parameter ...
0
votes
1answer
128 views

osm2po “show option”

The "show expansion" option in the web interface, how do i invoke that from the command line. I am trying something like this...with "debugExpansion=true"... ...
4
votes
1answer
140 views

finding routes just for cyclists

I have created a PostGIS DB using osm2po and I am using pgrouting to calculate the routes. The application I am creating should find routes for cyclists so I want the route finder to prefer roads ...
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
0answers
64 views

how to group interconnected edges inside a table?

Given a table and a random set of edges with source and target columns, how can I find out which edges connect with each other and then group them together using PostgreSQL?
0
votes
1answer
92 views

Does this routable network include oneways information?

I successfully imported osm road data using osm2po. I visualized the routable road network using Qgis. The table of the layer includes the following attributes: ...
1
vote
1answer
63 views

Column “osm_meta” in osm2po 4.6.9

What's the utility of *osm_meta* column in osm2po (Version: 4.6.9) generated data? Thanks in advance!
1
vote
0answers
48 views

given sets of vehicle passing on each edge, how to get most used vehicle to avoid transition?

I have two tables: one, the resulting table from converting osm.xml via osm2po so I can use pgRouting, and another one that contains information on what edges each public vehicle passes through ...
2
votes
1answer
113 views

turn osm2po vertex table restrictions column into turn cost for shooting star pgrouting?

i found this thread Does OSM2PO take into consideration turn restrictions? but im kind of new to sql and database so me, making my own query or sp to achieve the above suggestion by myself is kind ...
3
votes
2answers
224 views

How Does Directed and has_reverse_cost Arguments when set to [true, false] and [true, true] Affect Routing?

What will be the difference on the routing behaviour when I try to play with the directed and has_reverse_cost arguments on all the three routing algorithms? Example: the following SQL queries give ...
1
vote
1answer
130 views

Do vertex IDs stay the same every time I run osm2po?

Does anybody knows if vertex (source, target columns) in osm2po tables are always the same? I have my dr_2po_4pgr table with routing data and dr_matrix with routes already made. In this table I have ...
3
votes
1answer
211 views

How to get different clazz/flags for roundabout?

I'm using osm2po to import Open Street Map data. I want to get information about roundabouts. In the final SQL file I need to know if a road is part of a roundabout or not. The only way to get this ...
2
votes
1answer
194 views

Is OSM2PO ignoring some ways?

Recently I've started playing with OSM2PO and pgRouting but I've stumbled upon a weird problem which I'm not really sure where it comes from… I've installed OSM2PO on Ubuntu, with no errors, and I've ...
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 ...
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 ...
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!
11
votes
3answers
562 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 ...
2
votes
1answer
132 views

Can I Start and End an OSM2PO route in the middle of a road segment?

I need to be able to start and end a route in the middle of a road segment as opposed to a vertex/intersection. I know that you can disable snapping when stating your start/end but the route still ...
1
vote
3answers
214 views

Is it possible to change the projection used in OSM2PO?

Is it possible to change the projection used in OSM2PO? I used the following command to generate a SQL file which I loaded into my database: java -jar osm2po-core-4.2.30-signed.jar prefix=at ...
1
vote
4answers
204 views

Can't determine what parameters to pass to a OSM2PO SOAP call

I've been experimenting with OSM2PO which is a great little peace of software. Right now though, I'm fumbling with the SOAP WS which I'm trying to use from a JEE web application. I'm not having any ...
0
votes
1answer
403 views

PostGIS Out of Memory during bulk insert

I am attempting to import OSM road data using an SQL file generated by OSM2PO. However I keep getting the following error: ERROR: out of memory SQL state: 53200 Detail: Failed on request ...
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
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
2answers
759 views

How to find the Shortest Path between two coordinates points using pgrouting A-Star?

In PostGIS I have two tables: an osm road network and a table that contains the start and end coordinate points of each path (i.e. userid, start_x1, start_y1, end_x2, end_y2). I would like to know: 1) ...
1
vote
3answers
549 views

Why is pgRouting shortest route function complaining about wrong source and target IDs?

This question is somewhat linked to underdark post, but I think here it would more helpful: https://underdark.wordpress.com/2011/12/18/osm2po-part-2-pgrouting-on-osm-the-easy-way/#comment-2636 I ...
9
votes
3answers
487 views

What's the best way to implement routing through areas such as parking lots?

I'm using OSM2PO to route for walking directions and I've noticed a lot of the OSM walking paths are not ideally setup. For example there are many paths which get divided up by parking lots, which ...
2
votes
1answer
154 views

How do you ignore one-ways osm2po?

I've been using OSM2PO and it's a great system so far. However, in version 4.5.2, I can't seem to ignore the one-way restrictions for calculating walk distances. In the browser version, I check on ...
2
votes
2answers
163 views

What is geom_way column in osm2po generated data?

Could anybody tell me the meaning of geom_way column generated by osm2po?
1
vote
2answers
769 views

osm2po vs osm2pgrouting: workshop pgRouting

As osm2po was a more reliable way to convert an .osm I went for that solution to load my date in postgres. In the workshop however the author points out to check the result after osm2pgrouting. The ...
5
votes
1answer
338 views

Is PostGis suitable for Global data routing?

I'm searching quite some time now... Is it possible to load the global routing data into PostGis? What can I expect from a performance point of view? It's for routing purposes only. I've downloaded ...
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 ...
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
0answers
124 views

Graph of a specific area of USA

I am trying to get the network graph of a specific reason of USA. I have got a couple of options. One of them is using osm2po tool to extract the nodes and edge table from the osm map of a specific ...
2
votes
1answer
295 views

Can I get time & distance from OSM2PO without loading data into PostgreSQL?

Can I get time and distance from OSM2PO routing without loading the data into PostgreSQL? I've seen the answer regarding matching IDs with the DB, but I need to do this using only the OSM2PO service.
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 ...