Hot answers tagged

47 votes
Accepted

Export Google Maps Route to KML/GPX

GPS Visualizer will take a Google Map route (url) and convert to .gpx "You can ignore most the options, just select Gpx and paste the Google Maps URL into the box labelled “provide the URL of a ...
user avatar
  • 48.6k
17 votes

Export Google Maps Route to KML/GPX

To export a route to KML you'll have to use Google MyMaps. add a route to new or existing layer drag and drop the route to suit your needs Open the maps options menue (3 dots above the layers) Export ...
user avatar
  • 9,500
10 votes

Which tools and methods can be used to create isochrones?

You could have a look at the Targomo API (formerly Route360˚), a pretty simple but powerful JS library which you can use with Leaflet (or even Google maps if you like). It adds travel time polygons ...
10 votes
Accepted

Computing areas of influence using QGIS

the grass algorithm v.net.alloc can produce the subnets - you can call it from the Processing toolbox (tested in QGIS 2.16) You'll need a point layer (for facilities) and a lines layer with costs (...
user avatar
  • 19.8k
9 votes

Creating drive time polygons using Open Source tools?

You can use GraphHopper for that task, which also supports different mode like walking or biking and uses OpenStreetMap per default. You'll need some Java coding which explores the road network from ...
8 votes
Accepted

When computing flow direction, the D8 algorithm is used - are there major differences if others are used?

It may seem like laziness on the part of Watershed tool developers to stick with the simplest and oldest flow algorithm, D8, but there is a very sound reason for doing so. The difference between the ...
user avatar
  • 10.8k
8 votes
Accepted

Leaflet routing control change marker icon

The issue is that the createMarker function is called for every waypoint, so obviously the resulting markers will look the same. To work around it, you simply use the arguments that you already have. ...
user avatar
  • 1,709
8 votes
Accepted

pgr_createTopology with large datasets

The following is what I am using. Some of it is specific to our deployment environment since we are using docker and some bash scripts to deploy and set up the server. You could easily get rid of all ...
user avatar
  • 306
6 votes

Creating drive time polygons using Open Source tools?

osrm-isochrone is a small node.js library for generating drivetimes.
6 votes

How to create an OD road distance matrix in QGIS?

UPDATE - QGIS3: Since this seems to be an important topic, I would like to share my answer on a similar question. If you are using the current version of QGIS (3), you can use the plugin QNEAT3. It ...
user avatar
  • 2,305
6 votes
Accepted

Using OSM for routes?

GraphHopper (using OpenStreetMap Data) GraphHopper offers memory efficient algorithms in Java for routing on graphs. E.g. Dijkstra and A* but also optimized road routing algorithms like ...
user avatar
  • 48.6k
6 votes
Accepted

st_startpoint(the_geom) returning empty values

ST_StartPoint() only accepts LineString as input. You'll have to strip your table down from MultiLineString to LineString, either by taking only the first element up each geometry ALTER TABLE foo ...
user avatar
  • 19.4k
6 votes
Accepted

Solve for alternate routes without barriers or additional stops in ArcGIS Network Analyst?

As far as I know it's not possible to solve for alternate routes without some additional input or change to the analysis. In a network, given a particular impedance, there is only one shortest route ...
user avatar
  • 15.5k
6 votes
Accepted

Building Large Network Datasets from OpenStreetMap in ArcGIS?

As an answer to both Uffe Kousgaard comments about "what the 18GB file contains" compared to a routable shapefile, and a possible answer to this question: You don't explicitly state it, but I guess ...
user avatar
  • 2,512
6 votes
Accepted

Routing with several stops using QGIS

The solution requires some basic usage of PyQGIS. This code computes paths for every subsequent pair of points using the order specified in the "order" field. Then all the paths are merged ...
user avatar
5 votes

Looking for free web service that calculates driving distance between 2 addresses

A slight update a few years down the line, since I'm looking for the same thing: The ESRI link above no longer works, but gives the option of proceeding to http://route.arcgis.com. Under the API ...
user avatar
  • 51
5 votes

How to create an OD road distance matrix in QGIS?

QGIS has all the algorithms necessary, but there is no GUI to create matrices yet. With some Python knowledge the Network Analysis library documentation should get you started.
user avatar
  • 82.4k
5 votes

Creating drive time polygons using Open Source tools?

You might want to check out the open Route360° JavaScript API, which works with both Leaflet and Google maps. It returns travel time polygons for the following travel modes: walk, bike, car, transit. ...
5 votes
Accepted

How to find routes between for each entry in a list of point pairs?

Yes, you can do this with pgRouting. As a starting point I would recommend you to look at the pgRouting Workshop. Most efficient for your case might be the one-to-many shortest path funtion named ...
user avatar
  • 4,752
5 votes

leaflet-routing-machine add waypoints, routing summary

I can answer the 2nd part of your question, the first one has me a little tied up now too I'll edit if no one answers when I get my head around it. So for 2) just use something in the line of ...
user avatar
5 votes

Creating network datasets from OSM data in QGIS?

QGIS cannot convert OSM data into a routable graph. There are other tools which specialize on this task: osm2pgrouting open source osm2po free but not open source Both convert OSM data into a ...
user avatar
  • 82.4k
5 votes
Accepted

Simple node to node routing in QGIS

You can try RoadGraph plugin/Network analysis library. If you have two layers (they should be properly snapped): Set some settings Select point Start and Stop Calculate This plugin is based on a ...
user avatar
5 votes

Shortest path from points in one layer to points in another layer via roads in QGIS

You'll need some Python scripting because there is currently no GUI solution for this issue. To get you started, have a look at my point layer to route script for Processing which is based on the ...
user avatar
  • 82.4k
5 votes

How to find and delete all road unattached road segments

For QGIS, you could try the steps below. I used QGIS 2.12.3-Lyon and have a "road" line shapefile, the isolated road in the red circle is what we're trying to remove. Intersect your layer on itself (...
user avatar
  • 72.6k
5 votes

How can I know why an OSM way cannot be used for routing, and how can I fix it

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 ...
user avatar
5 votes
Accepted

pgr_dijkstra is considering one-way streets as bidirectional

You are passing in the metric length ST_Length(geom::GEOGRAPHY) of each edge E as both cost & reverse_cost - rendering it equal to to the undirected counterpart. pgRouting realizes ordered graph ...
user avatar
  • 24.5k
5 votes

Calculating cost values in pgRouting using ST_DWithin

You should simply UPDATE utrecht_osm_foot_2po_4pgr_duplicate SET cost_greenery = cost / 1000 WHERE ST_DWithin(geom_way, osm_meta, 30) ; If no update happened make sure your geometries have a ...
user avatar
  • 24.5k
4 votes

How to get a feature that lies closest to a point in openlayers?

In case someone comes years later (like me), the solution is much easier nowadays. ol.source.Vector has a function getClosestFeatureToCoordinate(coordinate, opt_filter) to find the closest feature ...
user avatar
  • 141
4 votes

Which tools and methods can be used to create isochrones?

In order to show isochrones (Travel Time Map) and isodistances you can try the iso4app service. This service currently is available for over 50 countries: North America, Central America,South America, ...
user avatar
  • 51
4 votes

Route through water polygons

If your objective is to develop a routing program over the sea returning various maritime routes from (origin,destination) pairs, you should rather rely on a linear mesh covering the seas, instead of ...
user avatar
  • 9,957

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