Overview - Amazon Location Service

Overview

Amazon Location Service offers four types of AWS resources for your location data needs. You can create one or more of these resources using the Amazon Location console, the Amazon Location APIs, or the SDKs

For example:

  • Amazon Location Service Maps enables you to select a map from a map provider to use on your mobile or web application.

  • Amazon Location Service Places lets you select a data provider for geocoding, reverse geocoding, and searching for points of interest.

  • Amazon Location Service Routes lets you find routes and estimate travel time based on up-to-date roadway and live traffic information from your chosen data provider.

  • Amazon Location Service Geofences allow you to define areas of interest as a virtual boundary on a map. You can then evaluate locations against them and get notifications of entry and exit events.

  • Amazon Location Service Trackers receive location updates from your devices. You can link trackers to collections of goefences so that all position updates are automatically evaluated against all your geofences.

You can use permission policies to manage and authenticate access to your Amazon Location resources, which you can set for each IAM user. You can also organize your resources into resource groups to manage and automate tasks as your resource numbers grow. For more information about managing AWS resources, see What are AWS Resource Groups? In the AWS Resource Groups User Guide.

Location data flows through Amazon Location resources using a format that's compliant to a standard geospatial data format called GeoJSON RFC 7946, which encodes geographic data into a standard definition. GeoJSON is a subset of JSON, and can be used by any programming language or parsed natively using JavaScript.

Location is defined using coordinates that follow the World Geodetic System (WGS 84), commonly used as the standard coordinate reference system for Global Positioning System (GPS) services.

The following sections provide overview descriptions about how the components of Amazon Location work.

Maps

The following shows you how to create and use map resources:

  1. You create a map resource in your AWS account by selecting a map style from a data provider.

  2. You can then select and install the SDK that matches your development environment and applications. For more information about available options, see the topic about Accessing Amazon Location.

  3. To display a map in your application, combine a map resource with a rendering library such as Mapbox GL, or Tangram. For more information. see the topic about Using maps.

  4. You can then integrate monitoring using services such as Amazon CloudWatch and using AWS CloudTrail with Amazon Location. For more information see, Monitoring Amazon Location Service with Amazon CloudWatch and Logging and monitoring with AWS CloudTrail.

Places

Place index resources provides geographical search functionality. You can use the place index APIs to search for:

  • Points of interest, such as restaurants and landmarks, and receive a list of options ordered by relevance.

  • A street address, and receive a latitude and longitude for that address. This is otherwise known as geocoding.

  • A latitude and longitude, and receive the associated street address. This is otherwise known as reverse geocoding.

The following shows you how to create and use place index resources:

  1. First, you create a place index resource in your AWS account by selecting a data provider.

  2. You can then select and install the SDK that matches your development environment and applications. For more information about available options, see the topic about Accessing Amazon Location.

  3. Start using the Amazon Location Places APIs . For more information, see the topic on Geocoding, reverse geocoding, and searching using Amazon Location.

  4. You can then integrate monitoring using services such as Amazon CloudWatch and AWS CloudTrail. For more information see, Monitoring Amazon Location Service with Amazon CloudWatch and Logging and monitoring with AWS CloudTrail.

Routes

Route calculator resources allow you to find routes and estimate travel time based on up-to-date roadway and live traffic information from your chosen data provider.

You can use the Routes APIs to build features that allow your application to request the travel time, distance, and directions between any two locations.

The following shows you how to create and use a route calculator resource:

  1. First, you create a route calculator resource in your AWS account by selecting a data provider.

  2. You can then select and install the SDK that matches your development environment and applications. For more information about available options, see the topic about Accessing Amazon Location.

  3. Start using the Amazon Location Routes APIs . For more information, see the topic on Calculating a route using Amazon Location Service.

  4. You can then integrate monitoring using services such as Amazon CloudWatch and AWS CloudTrail. For more information see, Monitoring Amazon Location Service with Amazon CloudWatch and Logging and monitoring with AWS CloudTrail.

Geofences

Geofence collection resources allow you to store and manage geofences—virtual boundaries on a map. You can evaluate locations against a geofence collection resource and get notifications when the location update crosses the boundary of any of the geofences in the geofence collection.

The following shows you how to create and use geofence collection resources:

  1. You create a geofence collection resource in your AWS account.

  2. You add geofences to that collection. You can do so by either using the geofence upload tool on the Amazon Location console, or by using the Amazon Location Geofences API. For more information about available options, see the topic about Accessing Amazon Location.

  3. You can start evaluating locations against all your geofences. When a location update crosses the boundaries of one or more goefences, you geofence collection resource will emit one of the following geofence event types on Amazon EventBridge:

    • ENTER – One event is generated for each geofence where the location update crosses its boundary by entering it.

    • EXIT – One event is generated for each geofence where the location update crosses its boundary by exiting it.

For more information, see Reacting to Amazon Location Service events with Amazon EventBridge. You can also integrate monitoring using services such as Amazon CloudWatch and AWS CloudTrail. For more information see, Monitoring Amazon Location Service with Amazon CloudWatch and Logging and monitoring with AWS CloudTrail.

Trackers

A tracker resource receives location updates from devices to support queries for current location and location history. Trackers can help you reduce costs by filtering position updates that haven’t moved before storing or evaluating them against geofences. You can link trackers to your geofence collection resources to ensure that position updates are evaluated automatically against your geofences.

The following shows you how to create and use tracker resources:

  1. First, you create a tracker resource in your AWS account.

  2. Next, decide on how you will send location updates to your tracker resources. The Android and iOS SDKs offer integrated tracking capabilities for your mobile applications. Alternatively, you can use MQTT by following the step-by-step directions in the tracking using MQTT section of this guide.

  3. You can now use your tracker resource to record location history and visualize it on a map.

  4. You can also link your tracker resource to one or more geofence collections so that every position update sent to your tracker resource is automatically evaluated against all the geofence in all the linked geofence collections. You can link resource on the tracker resource details page of the Amazon Location console or by using the Amazon Location Trackers API. For more information about available options, see the topic about Accessing Amazon Location.

  5. You can then integrate monitoring using services such as Amazon CloudWatch and AWS CloudTrail. For more information see, Monitoring Amazon Location Service with Amazon CloudWatch and Logging and monitoring with AWS CloudTrail.