К основному содержанию
скилл CX Codex

amazon-location-service — скилл для Claude Code: карты, геокодинг

Подключает API Amazon Location Service к проекту: карты, геокодинг, маршруты, поиск мест, геозоны и трекинг устройств.

Установить в Claude Code · Через Skills CLI (Vercel) Все способы и платформы ↓
npx skills add cline/skills --skill amazon-location-service -a claude-code
Открыть на GitHub

Что делает amazon-location-service

Скилл описывает работу с геопространственными API AWS: карты (интерактивные на MapLibre или статичные картинки), прямое и обратное геокодирование, расчёт маршрутов и зон обслуживания, поиск мест по тексту и рядом с точкой, автодополнение адресов, геозоны и трекинг устройств. Агент получает готовые подсказки по выбору операции и по частым ошибкам.

Внутри — разбор по группам API: Places, Maps, Routes, Geofences & Trackers, API Keys. Для веба советует брать связанный клиент @aws/amazon-location-client, а для React и сборщиков — модульные SDK @aws-sdk/client-geo-*. Операции Maps, Places и Routes можно вызывать без заранее созданных ресурсов, для геозон и трекинга ресурсы нужны. Аутентификация: API-ключ для карт, мест и маршрутов, Cognito для геозон и трекинга.

Есть список типовых промахов. Например, в результатах автодополнения для показа нужен Address.Label, а не Title, а карту в MapLibre инициализируют прямой ссылкой на стиль, без вызова GetStyleDescriptor. Если в проекте уже используется Google Maps, Mapbox или Leaflet с OSM, скилл не подойдёт — он про AWS.

Какие задачи решает

  • показать интерактивную карту с зумом и маркерами на MapLibre
  • превратить адрес из формы в координаты и обратно
  • посчитать время в пути между несколькими точками
  • найти заведения рядом с координатой и вытащить часы работы
  • отслеживать вход и выход устройства из геозоны

Примеры запросов агенту

  • Добавь интерактивную карту Amazon Location на страницу заказа, стиль Standard
  • Сделай автодополнение адреса в форме оформления через geo-places и показывай Address.Label
  • Посчитай маршрут и время в пути от склада до адреса клиента

Как установить amazon-location-service

1Через Skills CLI (Vercel)

npx skills add cline/skills --skill amazon-location-service -a claude-code

2Вручную: положить файлы

~/.claude/skills/amazon-location-service/SKILL.md

Папка скилла целиком; для одного проекта — .claude/skills/amazon-location-service/

По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов

Вопросы о amazon-location-service

Как установить amazon-location-service в Claude?

Выполните npx skills add cline/skills --skill amazon-location-service -a claude-code. Файл скилла появится по пути ~/.claude/skills/amazon-location-service/SKILL.md.

Что делает amazon-location-service?

Даёт агенту справочник по API Amazon Location Service: карты, геокодинг, маршруты, поиск мест, геозоны и трекинг устройств, плюс подсказки по аутентификации и интеграции SDK.

Подойдёт ли скилл для проекта на Google Maps или Mapbox?

Нет. Он рассчитан на Amazon Location Service и AWS, для чужих геосервисов его брать не стоит — разве что вы переносите проект на Amazon Location.

Исходный текст

SKILL.md · MIT-0
---
name: amazon-location-service
description: Integrates Amazon Location Service APIs for AWS applications. Use this skill when users want to add maps (interactive MapLibre or static images); geocode addresses to coordinates or reverse geocode coordinates to addresses; calculate routes, travel times, or service areas; find places and businesses through text search, nearby search, or autocomplete suggestions; retrieve detailed place information including hours, contacts, and addresses; monitor geographical boundaries with geofences; or track device locations. Covers authentication, SDK integration, and all Amazon Location Service capabilities.
license: MIT-0
metadata:
  author: aws-geospatial
  version: "1.0"
---

## Overview

Amazon Location Service provides geospatial APIs for maps, geocoding, routing, places search, geofencing, and tracking. Prefer the bundled JavaScript client (@aws/amazon-location-client) for web development and use resourceless API operations to avoid managing AWS resources.

## When to Use This Skill

Use this skill when:

- Building location-aware web or mobile applications
- Working with Amazon Location Service projects
- Implementing maps, geocoding, routing, or places search
- Adding geofencing or device tracking functionality
- Integrating geospatial features into AWS applications

Do NOT use this skill for:

- Google Maps, Mapbox, or Leaflet-with-OSM projects (unless migrating to Amazon Location)
- Generic GIS operations without AWS context
- Non-AWS geospatial services

## Amazon Location Service API Overview

**Places** (SDK: geo-places, JS: @aws-sdk/client-geo-places)

- Geocode (Forward/Reverse): Convert addresses to coordinates and vice versa
- Search (Text/Nearby): Find points of interest with contact and hours info
- Autocomplete: Predict addresses based on user input
- Suggest: Predict places and points of interest based on partial or misspelled user input
- Get Place: Retrieve place details by place ID

**Maps** (SDK: geo-maps, JS: @aws-sdk/client-geo-maps)

- Dynamic Maps: Interactive maps using tiles with [MapLibre](https://maplibre.org/) rendering
- Static Maps: Pre-rendered, non-interactive map images, good for including an image into a web page, or for thumbnail images

**Routes** (SDK: geo-routes, JS: @aws-sdk/client-geo-routes)

- Route calculation with traffic and distance estimation
- Service area/isoline creation
- Matrix calculations for multiple origins/destinations
- GPS trace alignment to road segments
- Route optimization (traveling salesman problem)

**Geofences & Trackers** (SDK: location, JS: @aws-sdk/client-location)

- Geofences: Detect entry/exit from geographical boundaries
- Trackers: Current and historical device location tracking

**API Keys** (SDK: location, JS: @aws-sdk/client-location)

- API Keys: Grant access to public applications without exposing AWS credentials

## Common Mistakes

Avoid these frequent errors:

1. **Using `Title` instead of `Address.Label` for display**: In Autocomplete results, always display `Address.Label`. The `Title` field may show components in reverse order and is not suitable for user-facing text.

2. **Using GetStyleDescriptor API for map initialization**: MUST use direct URL passing to MapLibre (`https://maps.geo.{region}.amazonaws.com/v2/styles/Standard/descriptor?key={apiKey}`) instead of making GetStyleDescriptor API calls. The direct URL method is required for proper map rendering.

3. **Forgetting `validateStyle: false` in MapLibre config**: Always set `validateStyle: false` in the MapLibre Map constructor for faster map load times with Amazon Location styles.

4. **Mixing resource-based and resourceless operations**: When possible, prefer resourceless operations (direct API calls without pre-created resources) for simpler deployment and permissions.

5. **Inconsistent API operation naming**: Use the format `service:Operation` when referencing APIs (e.g., `geo-places:Geocode`, `geo-maps:GetStyleDescriptor`). SDK clients use `@aws-sdk/client-*` format.

6. **Not handling nested Address objects correctly**: The Address object from GetPlace contains nested objects (`Region.Code`, `Region.Name`, `Country.Code2`, etc.), not flat strings. Access nested properties correctly.

7. **Wrong action names in API Key permissions**: API key `AllowActions` use `geo-maps:`, `geo-places:`, `geo-routes:` prefixes (e.g., `geo-places:Geocode`, `geo-routes:CalculateRoutes`). Do NOT use SDK client names (`@aws-sdk/client-geo-places`) or IAM-style actions. See the Authentication and Permissions section for the complete list.

## Defaults

Use these default choices unless the user explicitly requests otherwise:

- **JavaScript SDK**: Bundled client (CDN) for browser-only apps; npm modular SDKs (@aws-sdk/client-geo-\*) for React and build tool apps
- **API operations**: Resourceless for Maps/Places/Routes (Geofencing/Tracking always require pre-created resources)
- **Authentication**: API Key for Maps/Places/Routes; Cognito for Geofencing/Tracking
- **Map style**: Standard
- **Coordinate format**: [longitude, latitude] (GeoJSON order)

Override: User can specify "use Cognito for Maps/Places/Routes" or "use bundled client for React".

## API Selection Guidance

Choose the right API for your use case:

### Address Input & Validation

- **Autocomplete** → Type-ahead in address forms (partial input: "123 Main")
- **GetPlace** → Get full details after user selects autocomplete result (by PlaceId)
- **Geocode** → Validate complete user-typed address or convert address to coordinates

### Finding Locations

- **SearchText** → General text search ("pizza near Seattle")
- **SearchNearby** → Find places near a coordinate (restaurants within 5km)
- **Suggest** → Predict places/POIs from partial or misspelled input
- **Autocomplete** → Address-specific predictions (not for general POI search)

### Geocoding

- **Geocode (Forward)** → Address string → Coordinates
- **ReverseGeocode** → Coordinates → Address

### Maps

- **Dynamic Maps (tiles + MapLibre)** → Interactive maps requiring pan, zoom, markers
- **Static Maps (image)** → Non-interactive map images for thumbnails or email

### Routing

- **CalculateRoutes** → Single route between origin and destination
- **CalculateRouteMatrix** → Multiple origins/destinations travel times
- **CalculateIsolines** → Service areas (all locations reachable within time/distance)

## LLM Context Files

When you need detailed API parameter specifications or service capabilities not covered in the reference files, fetch these llms.txt resources:

- **Developer Guide**: https://docs.aws.amazon.com/location/latest/developerguide/llms.txt
- **API Reference**: https://docs.aws.amazon.com/location/latest/APIReference/llms.txt

## Key Guidance for Better Recommendations

### Prefer the Bundled JavaScript Client for Web Development

For convenient web application development, Amazon Location Service provides a bundled JavaScript client that simplifies integration and provides optimized functionality without custom bundling. This bundled client includes all libraries required to build client side web applications with Amazon Location Service.

**Features included in the bundled client:**

- Enables direct pre-bundled dependency inclusion without custom bundle / build
- Simplified authentication and API integration
- TypeScript support with comprehensive type definitions
- Support for all Amazon Location SDKs

**Included SDKs and Libraries:**

- @aws-sdk/client-geo-maps
- @aws-sdk/client-geo-places
- @aws-sdk/client-geo-routes
- @aws-sdk/client-location
- @aws-sdk/credential-providers
- https://github.com/aws-geospatial/amazon-location-utilities-auth-helper-js

**Resources:**

- NPM Package: [@aws/amazon-location-client](https://www.npmjs.com/package/@aws/amazon-location-client)
- GitHub Repository: [aws-geospatial/amazon-location-client-js](https://github.com/aws-geospatial/amazon-location-client-js)

### Prefer Resourceless Operations

Amazon Location Places, Maps and Routes services offer both resource-based and resourceless API operations. Resourceless operations are often simpler and more appropriate for many use cases.

**Resource-based operations** require you to:

- Create and configure Amazon Location Service resources (maps, place indexes, route calculators)
- Manage resource lifecycle and permissions
- Handle resource naming and organization

**Resourceless operations** allow you to:

- Make API calls directly without pre-creating resources
- Reduce deployment complexity
- Simplify IAM permissions and API Key permissions

### Authentication and Permissions

When discussing permissions for Amazon Location Places, Maps and Routes services, always include both IAM permissions and API Key permissions in your guidance. If the type of application being developed is clear, recommend the appropriate authorization tool as described below:

**IAM Permissions** - Recommended for server-side applications and AWS SDK usage:

- Used with AWS credentials (access keys, roles, etc.)
- Provide fine-grained access control
- Required for resource management operations

**API Key Permissions** - Alternative authentication method, especially useful for client-side applications or applications deployed to unauthenticated (public) users:

- Simplified authentication without exposing AWS credentials
- Can be configured with specific allowed operations
- Useful for web and mobile applications
- Supports both resource-based and resourceless operations
- Enables faster subsequent map loads through CDN caching

**API Key Action Names** - API keys use their own action naming convention. Do NOT use SDK client names or IAM action names — they will be rejected.

Resourceless API key actions (recommended):

| Service | AllowActions                                                                                                                                                                  | AllowResources                                |
| ------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------- |
| Maps    | `geo-maps:GetTile`, `geo-maps:GetStaticMap`                                                                                                                                   | `arn:aws:geo-maps:REGION::provider/default`   |
| Places  | `geo-places:Autocomplete`, `geo-places:Geocode`, `geo-places:ReverseGeocode`, `geo-places:SearchText`, `geo-places:SearchNearby`, `geo-places:Suggest`, `geo-places:GetPlace` | `arn:aws:geo-places:REGION::provider/default` |
| Routes  | `geo-routes:CalculateRoutes`, `geo-routes:CalculateRouteMatrix`, `geo-routes:CalculateIsolines`, `geo-routes:OptimizeWaypoints`, `geo-routes:SnapToRoads`                     | `arn:aws:geo-routes:REGION::provider/default` |

Do NOT use legacy `geo:` prefixed actions (e.g., `geo:GetMap*`, `geo:CalculateRoute`) — these are for pre-created resources only and will not work with resourceless APIs.

## MCP Server Integration

Integrates with the [AWS MCP Server](https://docs.aws.amazon.com/aws-mcp/latest/userguide/what-is-aws-mcp-server.html) (Apache-2.0 license) which provides access to AWS documentation, API references, and direct API interactions. See the [Getting Started Guide](https://docs.aws.amazon.com/aws-mcp/latest/userguide/getting-started-aws-mcp-server.html) for setup and credential configuration. To use a non-default region, add `"--metadata", "AWS_REGION=<your-region>"` to your MCP config args.

## Additional Resources

- [Amazon Location Service Developer Guide](https://docs.aws.amazon.com/location/latest/developerguide/)
- [Amazon Location Service API Reference](https://docs.aws.amazon.com/location/latest/APIReference/)
- [Amazon Location Service Samples](https://github.com/aws-geospatial)

## Reference Files

Load these resources as needed for specific implementation guidance:

- [Address Input](./references/address-input.md) - Create effective address input forms for users with address type ahead completion improving input speed and accuracy
- [Address Verification](./references/address-verification.md) - Validate addresses input from users before taking actions or persisting to databases
- [Calculate Routes](./references/calculate-routes.md) - Calculate routes between locations with customizable travel options and display them on maps
- [Dynamic Map Rendering](./references/dynamic-map.md) - Render dynamic maps with MapLibre
- [Places Search](./references/places-search.md) - Search for places or points of interest
- [Web JavaScript](./references/web-javascript.md) - Integrate Amazon Location services into web browser applications

© aws-geospatial · MIT-0 · cline/skills

Похожие скиллы

Всё по теме «Облака: AWS, Azure, GCP» →
amazon-opensearch-service aws Направляет миграцию, развёртывание, векторный поиск и анализ логов в Amazon OpenSearch Service и Serverless. Помогает строить запросы и расследовать сбои через агента. CX Codex +1 5 500установок amazon-dynamodb aws Скилл проводит агента по проектированию, ревью и отладке слоя данных на DynamoDB: перечисляет паттерны доступа, выбирает ключи и GSI, считает месячную стоимость. CX Codex +1 5 100установок axiom-location CharlesWiltgen Скилл для работы с геолокацией и картами в iOS: авторизация, геозоны, аннотации, маршруты и разбор поломок. CX Codex +1 1 000установок mapbox-search-integration mapbox Проводит агента через весь цикл внедрения поиска Mapbox: от вопросов о задаче до готового кода с нужным API и параметрами. CX Codex +1 1 900установок amap kaichen Вызывает веб-API AMap через локальные скрипты для геокодинга, расчёта маршрутов, поиска POI и погоды. Помогает агенту работать с картами без MCP-сервера. CX Codex +1 552установок mapbox-maplibre-migration mapbox Ведёт миграцию с MapLibre GL JS на Mapbox GL JS: замена пакета, импортов, стилей и токена. Пригодится, если упираетесь в свои тайлы или нужна официальная поддержка. CX Codex +1 1 400установок

Из того же набора17

data-analyst Скилл превращает агента в аналитика: уточняет вопрос, пишет ограниченный SQL к ClickHouse и объясняет, что стоит за цифрой. CX Codex +1 2 200установок vibe-prospecting Превращает агента в инструмент поиска компаний и контактов: роли, техстек, события, изменения сайтов. Пригодится, когда нужно собрать список лидов. CX Codex +1 1 400установок searching-sourcegraph Задаёт агенту порядок работы с MCP-инструментами Sourcegraph: сначала поиск, потом код. Пригодится, когда нужно найти реализацию или разобрать чужую систему. CX Codex +1 1 400установок endor-setup Скилл доводит endorctl до рабочего состояния: проверяет установку, ставит бинарник, проводит аутентификацию и запускает скан уязвимостей. CX Codex +1 1 200установок attorney-assist Скилл соединяет вас с юристом LegalZoom, когда ИИ-разбора договора мало. Юрист видит историю переписки, документы и выводы анализа. CX Codex +1 939установок ui5-typescript-conversion Скилл ведёт проект SAPUI5 или OpenUI5 через перевод на TypeScript: настройка сборки, типы, сам код. Пригодится, когда JS-проект пора типизировать. CX Codex +1 910установок dataproc-skills Скилл dataproc-skills даёт агенту доступ к кластерам и заданиям Dataproc через готовые скрипты на Node.js. CX Codex +1 900установок teamcity-cli Скилл учит агента гонять сборки TeamCity через CLI: смотреть логи упавших билдов, разбирать цепочки зависимостей, править пайплайны. CX Codex +1 741установок

Спонсоры проекта

Компании, которые помогают держать аналитику открытой