Tutorial: Create Amazon Location resources for your app
To begin you will need to create the required Amazon Location resources. These resources will be essential for the functionality of the application and executing the provided code snippets.
Note
If you haven't created an AWS account, follow the instructions in the AWS account managment user guide.
To begin you will need to create a Amazon Cognito Identity Pool Id, use the following procedure:
Open the Amazon Cognito console
and select Identity pools from the left side menu, then select Create Identity pool. Make sure Guest Access is checked, and press Next to contiue.
Next create a new IAM role or Use an existing IAM role.
Enter an Identity pool name, and make sure Identity Pool has access to Amazon Location
(geo)
resources for the map and tracker you will be creating nin the next procedure.
Next you need to create and style a map in the AWS Amazon Location console, use the following procedure:
Navigate to the Maps section
of the Amazon Location console and select Create Map. Give the new map a Name and Description. Record the name you assign, as it is used later in the tutorial.
When choosing a map style, consider the map data provider. Refer to section 82 of the AWS service terms
for more details. Accept the Amazon Location Terms and Conditions
, then select Create Map, to finish the map creation process.
Next you need to create a tracker in the Amazon Location console, use the following procedure:
Open the Maps section
in the Amazon Location console. Choose Create tracker.
Fill in the required fields. Make note of the tracker's Name as it will be refrenced throughout this tutoiral.
Under the Position filtering field, choose the option that best fits how you intend to use your tracker resource. If you do not set Position filtering, the default setting is
TimeBased
. For more information, see Trackers, and PositionFiltering in the Amazon Location API Reference.Choose Create tracker to finish creating the tracker.