QGIS – OS Places Search

Marketing
Marketing
  • Updated

By David Crowther

QGIS – OS Places Search - 1.png

Question:

Can you use the OS Places API Search within QGIS?

Answer:

Yes this is possible, follow the steps below to find out how I did this with an experimental QGIS plugin.

Step 1 – Sign up to the OS MAPS APIs

First you will need to ensure you have signed up to the OS Data Hubhttps://osdatahub.os.uk/ 

QGIS – OS Places Search - 2.png

Once you have signed up and created a Project you can choose to add the OS Places API to your project.

QGIS – OS Places Search - 3.png

Once it has been added to your project you will have an endpoint address which also contains your API Key – you will need the API key later.

QGIS – OS Places Search - 4.png

Step 2 – Download and install a QGIS Plugin

Currently (at time of writing) there wasn’t an available plugin to access the OS Places API, but with a little googling I found this GitHub download page with the python code for an experimental plugin.

https://github.com/paulwithy/QGIS-OS-Address-Search 

QGIS – OS Places Search - 5.png

From the Code option choose Download ZIP.

QGIS – OS Places Search - 6.png

And then extract the zip into a folder in your QGIS plugin’s location – likely here - C:\Users\yournamer\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins

https://gis.stackexchange.com/questions/274311/what-is-the-default-plugin-folder-location-in-qgis-3 

QGIS – OS Places Search - 7.png

Step 3 – Use the QGIS Plugin

The next time that you open QGIS, the Plugin will be auto added. This plugin is a blue magnifying glass button.

QGIS – OS Places Search - 8.png

When you open the tool you will need to enter the API Key and save it for re-use.

QGIS – OS Places Search - 9.png

Once the API Key is registered you can the start to run searches for address records using the OS Places API… for example run a postcode search.

QGIS – OS Places Search - 10.png

Choose to Zoom to result and the map will update to find the address record, placing a marker in the map.

QGIS – OS Places Search - 11.png

If your search returns multiple records they will be listed in the Result drop down.

QGIS – OS Places Search - 12.png

QGIS – OS Places Search - 13.png

There is also an option to Display all Addresses in the current map widow, and this will create a QGIS layer of those addresses where you can also view the attribute information.

QGIS – OS Places Search - 14.png

Was this article helpful?

0 out of 0 found this helpful

Have more questions? Submit a request

Comments

0 comments

Please sign in to leave a comment.