New answers tagged

3

Indeed, the default.config is very strict and to be honest it's too strict for my taste. I stumbled across a similar question weeks ago and modified the osm2po release notes for 5.1.0 to report this issue. Your solution above is correct. But I think there are not so many more positive tags, It would be shorter to modify the deny-option instead to sth. like ...


4

Ok, I am sorry about me answering my own question. I guess I had to ask the question to think about it more and be able resolve the problem. It turns out the problem was not in the OSM data but with the osm2po default config file I use to generate the graph. The problem Somewhere (line 188, if you are using osm2po 5.1.8) in the default config file, there ...


2

With a little inspiration from Melinda over in Esri's GeoNet forum I was able to implement the following script evaluator for my cost attribute under the default tab for turns. My logic behind the syntax is that if a route is attempting to traverse from one segment that is classified as a connector to another segment that is classified as a connector, the ...


1

GraphHopper is able to run offline in the Browser with the help of TeaVM See here for the examples. See here the blog post about it See here is the source repository Note: I'm the author of GraphHopper ...


2

You can get rid of such subnetworks otherwise it is harder as you'll need to decide for a 'cost factor' such distances need to be multiplied with. E.g. if you have A' and A'' and B' and B'' there are obviously 4 possible combinations with different distances and 4 potential different paths with different costs (e.g. distance, time or fuel costs) so you have ...


0

If the implementation of Dijkstra have good performance for the data in use, You may try to: get n nodes closest to A; get n nodes closest to B; For each collection, points could be on different segments with some buffer. For (a sql) example: ST_DWithin Order by ST_Distance LIMIT n...) Calculate n*n Dijkstra possibles routes e keep the best one.


0

As per my comments, I would recommend having a look at the ArcGIS Runtime SDK for iOS, it supports fully offline routing and geocoding. Here is a sample from their GitHub page. They have samples in both Swift and Objective-C. You will have to build the public transportation network yourself, but maybe you can find shapefiles/feature classes on line for the ...


1

As you discovered, osm2pgsql and osm2pgrouting are not the tools to use. These tools create dedicated spatial schema's and actually convert the raw data (especially in the case of osm2pgsql and its support for creating PostGIS multipolygons), instead of giving you the 'raw' data to do your own processing on. I think for your particular use case, you should ...



Top 50 recent answers are included