Amazon Location Service
A location service that provides integrated map display, geocoding, route calculation, geofencing, and device tracking capabilities
Overview
Amazon Location Service is a fully managed location service that provides integrated map display, address-to-coordinate conversion (geocoding), optimal route calculation, geofence (virtual boundary) configuration, and device position tracking. With Esri and HERE available as map data providers, it enables embedding location features into applications at significantly lower cost compared to Google Maps API. Collected location data is retained within your AWS account with no third-party sharing, featuring a privacy-by-design architecture.
Map Display and Geocoding API
Location Service's map feature integrates with MapLibre GL JS (Web) and MapLibre Native (iOS/Android) to embed customizable vector tile maps in applications. Map styles can be selected from multiple presets including road maps, satellite imagery, and dark mode, with color and label customization available. The geocoding API supports both forward geocoding (returning latitude/longitude from address strings) and reverse geocoding (returning the nearest address from coordinates), with Japanese address parsing support. The autocomplete feature enables implementing incremental search that presents candidates as users type addresses. The batch geocoding API efficiently processes thousands of addresses from CSV files into coordinates in bulk.
Route Calculation and Fleet Optimization
The route calculation API computes optimal routes, travel times, and distances given an origin, destination, and optional waypoints. It supports car, truck, and walking travel modes, with truck mode returning routes that account for vehicle height, width, and weight restrictions. Avoidance conditions (toll roads, ferries, highways) and real-time traffic information based on departure time can also be specified. For visiting multiple delivery points, the matrix routing API calculates travel time matrices between all points in bulk, serving as input data for traveling salesman problem approximation algorithms. Logistics companies have productionized patterns where Lambda + Location Service automatically calculates optimal routing order for hundreds of delivery points each morning, delivering results to driver mobile apps.
Geofencing and Device Tracking
The geofence feature defines circular or polygon virtual boundaries on the map, firing events when tracked devices enter (ENTER) or exit (EXIT) those boundaries. Events are sent to EventBridge, enabling flexible downstream processing including Lambda notification handling, Step Functions workflow triggering, and SNS push notifications. Device trackers accumulate position information periodically sent from mobile apps or IoT devices, used for movement history visualization and real-time position display. Position filtering allows configuring updates only when a device moves beyond a certain distance, suppressing unnecessary updates while stationary to optimize costs. Widely used for implementing location-based business logic including delivery tracking, employee safety management, and rental car return confirmation.