A a converter and a routing engine for Openstreetmap data

learn more… | top users | synonyms

1
vote
4answers
195 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 ...
1
vote
1answer
315 views

How to get travel time and link used from osm2po http service

I used osm2po to get shortest paths but I would like to get travel time and osm links ids used in the path. Is it possible? Here is the osm2po service url format I use (this is an example): ...
1
vote
0answers
19 views

Creating a .shp with OSM and import it to POSTGIS [closed]

Any suggestions ? I can't launch osm2po I don't know why, when I click on the jar file, nothing happen :p
1
vote
1answer
128 views

pgRouting 2.0 slow execution of A star algorithm

Recently, I wanted to test pgRouting ver. 2.0. I created the database structure with osm2po and imported UK map from http://download.geofabrik.de/europe.html. The data was imported correctly. When I ...
1
vote
2answers
66 views

Where can I find osm2po javadoc

I would like to build an offline routing engine to compute route distance between two coordinates. I found osm2po but I didn't found any sort of documentation. As far as i understood osm2po can be ...
1
vote
1answer
86 views

How can I relate the osm2po osm_source_id to data in OSM?

I created and imported osm data into postres using osm2po. e.g. java -Xmx8g -jar osm2po-4.6.9/osm2po-core-4.6.9-signed.jar config=osm2po.config.eu_xc prefix=eu tileSize=x,c europe-latest.osm.bz2 and ...
1
vote
2answers
172 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 ...
1
vote
0answers
93 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 ...
1
vote
1answer
86 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 ...
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 ...
1
vote
0answers
121 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 ...
1
vote
1answer
158 views

Interpreting the geom_way in the table created using osm2po [duplicate]

Possible Duplicate: Issues while plotting the results of pgRouting shortest path I am trying to actually figure out what this column exactly represents and how to use that in my case. I ...
0
votes
1answer
346 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 ...
0
votes
1answer
199 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?
0
votes
1answer
85 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: ...
0
votes
1answer
23 views

null pointer Exception in osm2Po

I am tring to use OSM2PO on Windows 7 but nothing works. I have JAVA Already installed. When I launch the command java -jar osm2po-core-4.7.7-signed.jar prefix=at "USTHB.osm" I get this : ...
0
votes
1answer
73 views

How can a truck network be built / extracted using osm2po?

Is it possible to adjust the config of osm2po to build a truck / lorry (in German: LKW) network?
0
votes
1answer
84 views

Does osm2po find routes of alternating modes e.g. car, ferry, car

I loaded europe-latest.pbf into osm2po using the default osm2po.config and java -Xmx8g -jar ../osm2po-4.6.9/osm2po-core-4.6.9-signed.jar prefix=eu tileSize=x,c ../europe-latest.osm.pbf and looked at ...
0
votes
1answer
112 views

Using pgr_drivingDistance with large ids

I have little experience with postgres and none with pgrouting. I'm trying to use the pgr_drivingDistance function with Open Street Map data (generated through osm2po), but whenever I run my query: ...
0
votes
2answers
153 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 ...
0
votes
1answer
125 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
82 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 ...
0
votes
1answer
93 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
98 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 ...
0
votes
2answers
80 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 ...
0
votes
2answers
178 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: ...
0
votes
1answer
116 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"... ...
0
votes
2answers
69 views

Osm2po : Querying generated table to get the closet line from a point

I generate the OSM data of Africa postgis and I want to launch queries for a list of gps points to project them into the closest line. I made this request to a single point but took around 3 ...
0
votes
3answers
115 views

Faster routing algorithm on pgrouting

I have downloaded data for india as a dbf file then converted it using osm2po to make it routable but the problem is when i make any routing query it takes a lot of time around 300 seconds and these ...
0
votes
1answer
23 views

osm2po: access values of maxweight tag

What is a best way to access osm's maxweight tag value to be able to use it in edge router? Basically my goal is to overwrite EdgeRouter's calcEdgeCost and check there if given edgeIdx has maxweight ...
0
votes
1answer
61 views

How to use osm2po to solve TSP

I've got a TSP to solve. I created a routable street graph using osm2po and imported the result to PostGIS. On my PG db I installed the pgrouting extension (over PGAdmin3 GUI --> right click ...
0
votes
1answer
41 views

How to configure osm2po to use the specified maxCost in TspDefaultMatrix

The problem I am using osm2po's TspDefaultMatrix to create a cost (time) matrix: new TspDefaultMatrix(graph, vertexIds, maxCost, Log.stdout(Log.LEVEL_LOG), properties) Where properties contains: ...
0
votes
1answer
56 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
0answers
62 views

How to simplify osm2po's routable graph?

I'm building a pgrouting routable network thanks to osm2po, the problem is that my network is too big. Indeed I want to create isochron and 1 node = 1 canvas circle, so I don't want too many nodes. I ...
0
votes
3answers
72 views

osm2po - How to extract shape of each segment?

osm2po library does a great job in creating the data required by pgRouting to calculate theshortest paths. But I need the shape (Geometry - LineString 4326) to be extracted when osm2po generates the ...
0
votes
1answer
120 views

osm2po Java API documentation

I would like to get started writing a custom TagResolver, and I'm fairly unexperienced in Java. Is there a osm2po Java API reference somewhere for the 'Default' classes (DefaultJoinInterceptor, ...
0
votes
0answers
79 views

Is it possible to load multiple OSM regions in osm2po?

I need to use a few smaller European countries (100MB). Is it possible to do this in osm2po? Or can some other tool be used to merge the maps into one pbf file?
0
votes
0answers
50 views

Adding countries to database using osm2po one by one

Is it possible to import countries into postgresql using osm2po one by one, mean not whole europe at once but split and import it by countries to lower load, increase speed etc.
0
votes
0answers
106 views

pg_routing / osm2po routing not working

I'm trying to make working pgrouting 2 but no luck. Generally it is working but routing table is completely wrong. I did import osm database using osm2po(): java -Xmx1024m -jar ...
0
votes
1answer
57 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
91 views

Get road type (clazz) in osm2po

Can I get clazz of a segment in Java? For example, RoutingResultSegment rrs = graph.lookupSegment(path[j]) How can I get rrs's clazz?
0
votes
1answer
96 views

osm2po vertices table, what does ref_count stands for?

i am using osm2po to import osm file, into postgres/gis. after de commenting in osm2po config file: #postp.2.class = de.cm.osm2po.plugins.PgVertexWriter i get a nice vertices table, with turn ...
0
votes
2answers
77 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
136 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 ...
0
votes
0answers
63 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?