A a converter and a routing engine for Openstreetmap data

learn more… | top users | synonyms

0
votes
2answers
226 views

How much memory need osm2po for loading 10Gb map?

i'm using osm2po as routing engine,and i'm trying to load whole europe map ( about 10 GB file ) - java always die on memory error. How osm2po works, do i need to have over 10GB of physical memory to ...
1
vote
2answers
49 views

Does OSM2po handle squares and places?

OSM2po is converting data from OSM to postgresql. But how is it handled with places or squares? Not every places, square has pedestrian way routes on it. But for routing I need nodes and pedestrians ...
0
votes
1answer
191 views

How to correctly convert data from OSM with osm2po to use it with A* algorithm?

I want to make my A-Star fast, by using heuristics. At the moment it is very slow and even slower than my Dijkstra. I thougt A-Star is in the worst case as fast as Dijkstra. I convert my OSM bounding ...
0
votes
1answer
256 views

Can osm2po produce a travel distance buffer for a given time?

Given a starting point and a travel time, I would like to produce a travel distance polygon. Can I request this from osm2po via http?
1
vote
2answers
106 views

Is there a way to keep toll_booth nodes in osm2po's output?

I am writing a code that performs a custom routing on the sql relation generated by osm2po. Amongst several other things, I need to detect if the selected route (list of ids) passes through one or ...
0
votes
1answer
97 views

Will osm2po or other tools simplify links between nodes?

To make this clearer, I'm going to use the the word "section" to mean a length of road between two junctions/intersections. I think it is true that osm2po (under default user options) creates a graph ...
1
vote
2answers
226 views

How to create a suitable filtered .osm for osm2po using OpenStreetMap Overpass API?

I successfully created a (.osm) set suitable for routing in a desktop GIS over a large custom area thus keeping only primary network (way object) using the Overpass API (see below). I'm trying this ...
0
votes
1answer
116 views

How to customize logic for defining default speed limits for roads in osm2po

I need to customize osm2po logic in defining possible speed limits of ways. osm2po takes into account only class of road while I need to consider one more parameter: is road inside or outside some ...
0
votes
1answer
131 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 ...
2
votes
2answers
92 views

Load surface to SQL using osm2po

Does anyone know, if it is possible to make osm2po able to load extra road data into SQL file, such as the surface tag? [1] I know it is not much used, but when it is, it would be nice to know if the ...
3
votes
1answer
253 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
117 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
110 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
729 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
301 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
251 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
105 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
272 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
166 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
236 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
282 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
192 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
243 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
336 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
145 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
146 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
140 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
90 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
65 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
99 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
68 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
133 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
3answers
298 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
136 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
242 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
210 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
421 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
352 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
192 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
603 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
138 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
229 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
218 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
452 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
287 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
548 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
832 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
607 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 ...