Tag Info

Hot answers tagged

2

(1) Yes. osm2po creates a SQL import file, which already contains the routing topology. (2) Yes. You just need to convert kilometers to miles. If you use km AS cost in your pgRouting query, then your route cost attribute will be in km as well. (3) For the address lookup you need a Geocoder, for example Nominatim. When you know the point coordinates, you ...


2

Can you check your data types? Better to use integer data type and not multi-geometries. Column | Type | Modifiers ----------+---------------------------+----------- id | integer | source | integer | target | integer | the_geom | geometry(LineString,4326) | id can ...


1

it depends which Beta Version of OL3 you are using. On the latest Version v.3.0.0 – gamma.2. there is no: new ol.source.SingleImageWMS The source name is: new ol.source.ImageWMS http://ol3js.org/en/master/apidoc/ol.source.ImageWMS.html Try to change that, maybe it solve the problem. Thank you for feedback.


1

You specify that the route should start on node 1 but there is no node 1 in the query result set. That can't work ... According to the documentation http://docs.pgrouting.org/dev/src/tsp/doc/index.html, you should specify the start point id. This works: create table tsp_test (id integer, x double precision, y double precision); insert into tsp_test ...


1

They are called diff updates. You have two options .. Apply the Diffs from PlanetOSM and then remove the imported geometry that are outside of your bounding box Use the Geofabrik Extracts for North America and apply the Geofabrik diffs which are updated daily. I do both, 3 minute diff updates for the planet and daily diff updates for the Philippines, in ...


1

If you swap all oneway streets, then you can still get the same routes as a many-to-one calculation. Much faster than doing many one-to-one routes. If you don't care about speed, but just want to do it as simple as possible, use the query from underdark which I guess is something about doing all-to-all and selecting the needed routes from that.


1

The pgr_kDijkstra function allows you to calculate one-to-many distances. With Dijkstra algorithm you need to start and end your route with a node ID, so it might be a good idea to integrate your logistic centers and points into the road network. You can do this with some PostGIS functions: ST_LineLocatePoint gives you closest point on LineString to the ...



Only top voted, non community-wiki answers of a minimum length are eligible