Create Amazon Location resources for your app
If you do not already have them, you must create the Amazon Location resources that your application will use. You will create a map resource to display maps in your application, a place index to search for locations on the map, and a tracker to track an object across the map.
To add location resources to your application
-
Choose the map style that you want to use.
-
In the Amazon Location console, on the Maps
page, choose Create map to preview map styles. -
Add a Name and Description for the new map resource. Make a note of the name that you use for the map resource. You will need it when creating your script file later in the tutorial.
-
Choose a map.
Note
Choosing a map style also chooses which map data provider that you will use. If your application is tracking or routing assets that you use in your business, such as delivery vehicles or employees, you may only use HERE as your geolocation provider. For more information, see section 82 of the AWS service terms
. -
Agree to the Amazon Location Terms and Conditions, then choose Create map. You can interact with the map that you've chosen: zoom in, zoom out, or pan in any direction.
-
Make a note of the Amazon Resource Name (ARN) that is shown for your new map resource. You'll use it to create the correct authentication later in this tutorial.
-
-
Choose the place index that you want to use.
-
In the Amazon Location console on the Place indexes
page, choose Create place index. -
Add a Name and Description for the new place index resource. Make a note of the name that you use for the place index resource. You will need it when creating your script file later in the tutorial.
-
Choose a data provider.
Note
In most cases, choose the data provider that matches the map provider that you already chose. This helps to ensure that the searches will match the maps.
If your application is tracking or routing assets that you use in your business, such as delivery vehicles or employees, you may only use HERE as your geolocation provider. For more information, see section 82 of the AWS service terms
. -
Choose the Data storage option. For this tutorial, the results are not stored, so you can choose No, single use only.
-
Agree to the Amazon Location Terms and Conditions, then choose Create place index.
-
Make a note of the ARN that is shown for your new place index resource. You'll use it to create the correct authentication in the next section of this tutorial.
-
To create a tracker using the Amazon Location console.
Open the Amazon Location Service console
. In the left navigation pane, choose Trackers.
Choose Create tracker.
Fill in the all the required fields.
Under Position filtering, we recommend you use the default setting: TimeBased.
Choose Create tracker to finish.