![Amazon Location Service Plugin for QGIS released in OSS](https://assets.community.aws/a/2h3IELg65KG3zKt8HnGbAGB0uh9/loca.webp)
Amazon Location Service Plugin for QGIS released in OSS
I released the QGIS plugin as OSS, utilizing Amazon Location Service, which is probably the world's first!
Published May 27, 2024
Although I have written a QGIS plugin book and released several QGIS plugins in the past, I enjoyed developing QGIS for the first time in a long time.
This is probably the first attempt in the world to develop a QGIS plugin using Amazon Location Service, and I have decided to release this plugin as OSS. This plugin has not yet implemented all the features, but I plan to add more.
Location information technology is being used in a variety of fields. I hope that through this plugin, more people will discover the convenience and potential of the Amazon Location Service. Please give it a try!
In this article, I will introduce how to use this plugin.
![](https://assets.community.aws/a/2h3HY9CihLgxCpHZfe6KsszCCVF/try-.webp)
In advance, build Amazon Location Service resources.
![](https://assets.community.aws/a/2h3HqdFFWdTsXG67mktNeGXhR9W/try-.webp)
Select from the following to build your resources.
- AWS Management Console: Manually configure the resource using the GUI.
- AWS CDK: Automate your infrastructure with code.
- AWS CloudFormation: Automatically build resources using templates.
Install QGIS plugins. Plugins are registered in the official repositories and can be installed directly from QGIS.
![](https://assets.community.aws/a/2h3HtE79XFVM5se6O2Jd2LQdte5/try-.webp)
- Select "Plugins" → "Manage and Install Plugins..."
- Search for "Amazon Location Service"
Once the plugin is installed, a menu will appear. There are five types of menus: Config, Map, Place, Routes, and Terms.
![](https://assets.community.aws/a/2h3HvBfWTpxR6LcYH8YfGo13VWS/try-.webp)
- Config: Set each resource name and API key
- Map: Map display function
- Place: Geocoding function
- Routes: Routing function
- Terms: Display Terms of Use page
Configure various settings. Configure region name, API key, Map name, Place name, and Routes name.
![](https://assets.community.aws/a/2h3Hx4RamKZgIIr6GzK18EL9pu4/try-.webp)
- Click the “Config” menu
- Set each resource name and API key
- Region: ap-xxxxx
- API Key: v1.public.xxxxx
- Map Name: Mapxxxxx
- Place Name: Placexxxxx
- Routes Name: Routesxxxxx
- Click “Save“
This is a map display function. Creates a vector tile layer in QGIS using the acquired vector tiles.
![](https://assets.community.aws/a/2h3HzMkd1D7Im88S0spAUS8uEY6/map-.webp)
- Click the “Map” menu
- Select “Map Name“
- Click “Add“
- The map is displayed as a layer
QGIS does not support all vector tile styles, so some styles may not be displayed.
This is a geocoding function. Creates a point layer in QGIS using the acquired address data.
![](https://assets.community.aws/a/2h3I1JcjChEYDQWWfOMF7C5fkxn/plac.webp)
- Click the “Place” menu
- Select “Select Function“
- Click “Get Location“
- Click on the location you wish to search
- Click “Search”
- Search results are displayed in layers
This is a routing function. Create a line layer in QGIS using the acquired route data.
![](https://assets.community.aws/a/2h3I3p4ApmIZsw8magplTrieSDK/rout.webp)
- Click the “Routes” menu
- Select “Select Function“
- Click “Get Location(Starting Point)“
- Click the starting point
- Click “Get Location(End Point)“
- Click on the endpoint
- Click “Search”
- Search results are displayed in layers
This function displays the Terms of Use.
- Click the “Terms” menu
- The Terms of Use page will be displayed in your browser.
The following is a partial code of the plugin.
Overall Configuration
This is the configuration file for the QGIS plugin. It contains metadata such as plugin name, version, icon path, etc.
This is the main process. It initializes the plugin UI and configures various functions.
This is the UI file, which defines labels, combo boxes, and buttons in the dialog created by Qt Designer.
This is the UI processing; it loads UI components and displays configuration options.
This is the map click process. It retrieves the coordinates of the clicked position on the map and reflects them in the specified UI.
This is the routing function. It creates a line layer in QGIS using the acquired route data.
Amazon Location Service has terms of use for data usage. Please check the section “82. Amazon Location Service” and use the service at your own risk.
When using HERE as a provider, in addition to the basic terms and conditions, you may not.
a. Store or cache any Location Data for Japan, including any geocoding or reverse-geocoding results.
b. Layer routes from HERE on top of a map from another third-party provider, or layer routes from another third-party provider on top of maps from HERE.
b. Layer routes from HERE on top of a map from another third-party provider, or layer routes from another third-party provider on top of maps from HERE.