Two years ago I wrote the OSMroute plugin which enable the QGIS user to use the OpenRouteService API for geocoding of points, accessibility analysis as well as routing from A to B. Unfortunately the managing of a plugin/ open source tool is time-consuming/ hard. But fortunately Nils Rode lifted the plugin to a new level: OSM tools.
OSM Tools Plugin
The plugin can be installed as a normal plugin via the plugin manager:
OSM tools plugin in QGIS plugin manager
The usage is quite easy and enable you to geocode/reverse geocode addresses, find routes, create an isochrone map. Yet as the API from openrouteservice.org is an open one there are some limitations on the API:
500 free requests per day in total
40 requests per minute
OSM tools interface
You could be easily affected by these restrictions as the API allows some batch jobs. The batch mode enables you row-by-row or row-by-any routing.
different types of batch modes.
The result is really good: a clean feature table with all the needed information of the routes:
OSM Tools Batch mode result
Nils did a great job on this one and I encourage everyone to use this with your own API key, look for issues with it (and report them!) and help this plugin to grow!
Are there any plans to enable this to work in the UK. I saw this and added it to my copy of QGIS as it would be a fantastic addition, but when I tried it, it wouldn’t work
Thank you for intrucing this very useful tool. When trying the tab accessibility areas, I always get an error with the conduction in the python script. Does anyone has an idea how to solve it? Thanks in advance. 2017-05-22T10:07:28 1 Traceback (most recent call last): File “C:/Users/User/.qgis2/python/pluginsOSMtoolsosm_tools.py”, line 234, in run self.route_anal.route() File “C:/Users/User/.qgis2/python/pluginsOSMtoolsosm_tools_routing.py”, line 250, in route point_list = [float(x) for x in end_features[0].split(“,”)] ValueError: could not convert string to float: Long 2017-05-22T10:08:06 1 Traceback (most recent call last): File “C:/Users/User/.qgis2/python/pluginsOSMtoolsosm_tools.py”, line 231, in run self.access_anal.iterAnalysis() File “C:/Users/User/.qgis2/python/pluginsOSMtoolsosm_tools_access.py”, line 286, in iterAnalysis feat_list, isochrone_list = self.accRequest(feat_in.geometry()) TypeError: ‘NoneType’ object… Read more »
Please include the URL used (w/o key). You can get it via the Python console in QGIS, it´ll print the URL when making a request.
Wilfried
7 years ago
I have a problem for accessibility areas distances when I use the use layers function. There is a python error each time.
File “C:PROGRA~1QGIS2~1.16appsPython27libjsondecoder.py”, line 383, in raw_decode raise ValueError(“No JSON object could be decoded”) ValueError: No JSON object could be decoded
The time function works very well. What does this come from?
Yesterday QGIS 2.6 Brighton was released. Now all systems are supported as also KyngChaos compiled a new version for QGIS 2.6 (source). In this post, I thought myself…
OpenStreetmap is the fastest growing community mapping project of all times. Beside the “normal” map result, what you can use for your daily navigation through cities and countries…
When it comes to webmapping there are thousands of possible markers you can choose from but when it comes to markers depending on the data, which is inside…
Are there any plans to enable this to work in the UK. I saw this and added it to my copy of QGIS as it would be a fantastic addition, but when I tried it, it wouldn’t work
Works great in the UK:
Ill give it another try, I downloaded it a few weeks ago
Use osm tools! Not osmroute!
Thank you for intrucing this very useful tool. When trying the tab accessibility areas, I always get an error with the conduction in the python script. Does anyone has an idea how to solve it? Thanks in advance. 2017-05-22T10:07:28 1 Traceback (most recent call last): File “C:/Users/User/.qgis2/python/pluginsOSMtoolsosm_tools.py”, line 234, in run self.route_anal.route() File “C:/Users/User/.qgis2/python/pluginsOSMtoolsosm_tools_routing.py”, line 250, in route point_list = [float(x) for x in end_features[0].split(“,”)] ValueError: could not convert string to float: Long 2017-05-22T10:08:06 1 Traceback (most recent call last): File “C:/Users/User/.qgis2/python/pluginsOSMtoolsosm_tools.py”, line 231, in run self.access_anal.iterAnalysis() File “C:/Users/User/.qgis2/python/pluginsOSMtoolsosm_tools_access.py”, line 286, in iterAnalysis feat_list, isochrone_list = self.accRequest(feat_in.geometry()) TypeError: ‘NoneType’ object… Read more »
Hi Gisacka,
as Riccardo wrote, please post issues here:
https://github.com/nilsnolde/ORStools/issues
Please include the URL used (w/o key). You can get it via the Python console in QGIS, it´ll print the URL when making a request.
I have a problem for accessibility areas distances when I use the use layers function. There is a python error each time.
File “C:PROGRA~1QGIS2~1.16appsPython27libjsondecoder.py”, line 383, in raw_decode raise ValueError(“No JSON object could be decoded”) ValueError: No JSON object could be decoded
The time function works very well. What does this come from?