Front-End Web & Mobile

Resources to Integrate with Amazon Location Service

Curious to find how you can customize your map, look for places, and play around with routing capabilities, directly on AWS? Learn how Amazon Location provides secure capabilities for developers to easily visualize and customize a map, add location, and enable tracking features to their application. The Amazon Location Service Developer Guide has detailed information for you to explore and learn about the common use cases for Amazon Location Service.

Key features, described in post.

Figure 1: Key features

Here are the API references to the key features in Amazon Location that you can use:
Maps to visualize location information.
Places to integrate search functionality, for geocoding, and reverse geocoding.
Routing to calculate routes and estimate travel time.
Geofencing to detect and act when a tracked device enters or exits a defined geographical boundary.
Trackers to send device location updates from your tracking-enabled application.
Tagging to create tags to categorize your resources by purpose, owner, environment, or criteria.

Wondering about the availability of security, monitoring, and compliance features available with this service? Amazon Location simplifies your development workflow by seamlessly integrating with services such as AWS CloudTrail, Amazon CloudWatch, Amazon EventBridge, and AWS Identity and Access Management (IAM).

Prefer using the command-line shell instead of browser-based AWS Management Console? Similar to other AWS services, you can use AWS CLI to interact with Amazon Location Service.

Check out our repository of samples on GitHub for examples on how to use Amazon Location in your application. These GitHub samples repositories are created by AWS subject matter experts, aimed at helping our customers to enable, provision, and operate their environments in AWS with minimal time to production.

MAPS

  1. MapLibre
    1. Here are samples using MapLibre GL JS to embed client-side maps into web applications:
      1. Using MapLibre GL JS with Amazon Location Service – Integrate MapLibre GL JS with Amazon Location within a basic HTML and JavaScript application.
      2. Using MapLibre GL JS using React Framework with Amazon Location Service – Embed a map in your React application using Amazon Location Service.
      3. Using MapLibre GL JS with Amazon Location Service and AWS Amplify – Integrate MapLibre JS with Amazon Location and AWS Amplify within a basic HTML and JavaScript Application
      4. Using MapLibre GL JS with Amazon Location Service and AWS Amplify in a React Application – Embed a map in your React Application using Amazon Location Service and AWS Amplify
      5. Using react-map-gl with Amazon Location Service and AWS Amplify – With react-map-gl, which is a set of react components used to display maps, learn how to leverage that to display maps with Amazon Location Service and AWS Amplify.
      6. Create Custom Style Map – Customize your map to meet the brand requirements and provide visualization for geographical data using Amazon Location Service and data providers, Esri and HERE. This sample has an associated AWS Front-end Web and Mobile blog post.
      7. Amazon Location Helpers – It will help initialize MapLibre GL JS maps with support for Signature Version 4 so that it can be used with Amazon Location Service.
    2. Here are the samples using MapLibre GL Native SDK to embed interactive maps into your Android and iOS applications:
      1. Using the MapLibre GL Native SDK for Android with Amazon Location Service
      2. Using the MapLibre GL Native SDK for iOS with Amazon Location Service
  2. Tangram
    1. Using Tangram with Amazon Location Service – See how you can integrate Tangram with Amazon Location within a basic HTML/JavaScript application using the Tangram Style called Bubble Wrap.
    2. Here are the samples showing how to integrate Tangram ES for Android and iOS with Amazon Location using the Tangram style called Cinnabar.
      1. Using Tangram ES for Android with Amazon Location Service
      2. Using Tangram ES for iOS with Amazon Location Service

Places

  1. Samples and user-defined functions (UDFs) to create and configure a Lambda function to geocode address data stored in AWS Databases using Amazon Location Service.
    1. Access Amazon Location Service from Amazon Aurora – Learn more using this reference AWS Database blog post.
    2. Access Amazon Location Service from Amazon Redshift – Learn more using this reference AWS Big Data blog post.
    3. Amazon Aurora UDFs for Amazon Location Service – This is a set of AWS Lambda and UDFs for Amazon Aurora PostgreSQL that enable querying Amazon Location Service using SQL. These facilitate cleaning, validating, and enriching data in place.
    4. Amazon Location Athena UDFs – This is a set of Federated Scalar Batch Functions for Amazon Location Service and Amazon Athena using Athena Query Federation SDK. These UDFs allow you to geocode and reverse geocode data accessible to Athena from the comfort of SQL.

TRACKING

  1. Location Tracking in Android – Add capabilities such as maps, points of interest, geocoding, routing, geofences, and tracking to applications without compromising data security and user privacy.
  2. Location Tracking in iOS – Use AWSLocationTracker to start and stop location tracking.
  3. Delivery Service Tracking – Implement estimated time of arrival and proximity notification for delivery using routing and geofence capabilities provided by Amazon Location Service. This sample has an associated AWS Front-end Web and Mobile blog post.
  4. Asset Tracking – Leverage maps and device tracking using location-based features to track device positions in a map, with trackers highlighting a reported location. For context, check out this AWS Front-end Web and Mobile blog post.

Beyond the above-mentioned samples and blog posts, here are other resources available for you to explore:

Resources for Portuguese Speakers:

Resources for Spanish Speakers:

You can provide feedback or ask questions related to any of the resources mentioned above on AWS Developer Forums.

About the authors

Drishti Arora

Drishti Arora is an Associate Cloud App Consultant within Shared Delivery Teams at Amazon Web Services. Drishti works with AWS customers to help them in their cloud journey and provide cloud solutions with Application Development.

Panna Shetty

Panna Shetty is a Sr. Technical Account Manager with Amazon Web Services (AWS), working with public sector customers and has over 18+ years experience in the software industry.