Token导航 LogoToken导航TokenDH.com
研究检索external-servicegithub未标认证来源可访问许可证需确认审计通过

mapbox-location-grounding地图框位置接地

Agent Skill

mapbox-location-grounding 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

3,115

周安装

126

GitHub Stars

48

下载量

978
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:mapbox-location-grounding(地图框位置接地)
来源仓库:https://github.com/mapbox/mapbox-agent-skills
仓库路径:skills/mapbox-location-grounding
安装命令:
npx skills add https://github.com/mapbox/mapbox-agent-skills --skill mapbox-location-grounding
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/mapbox/mapbox-agent-skills --skill mapbox-location-grounding

简介

用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中快速定位候选结果。

  • 支持基于关键词、任务场景或来源线索进行信息检索与筛选。
  • 通过 npx skills add 命令从 GitHub 仓库安装使用。
  • 建议确认权限范围和维护状态,避免触发联网或文件读写操作。
  • mapbox-location-grounding 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Mapbox Location Grounding Skill

Teaches AI assistants how to ground location-aware responses in live Mapbox data by composing MCP tools into a structured, cited answer. Use this instead of relying on training data for place names, POIs, ratings, or travel times — which are stale and prone to hallucination.

When to Use Grounding

Ground responses when the user asks about:

  • "What's near [location]?" or "What's around [coordinate]?"
  • "Describe this neighborhood / area"
  • "Find [category] within walking/driving distance"
  • "What can I do near [address]?"
  • "How long does it take to get from A to B?"
  • "What's within a 10-minute walk of here?"
  • "How far is it between these locations?"
  • Real estate, travel, mobility, or local discovery use cases
  • Any question where place accuracy, recency, or travel time matters

Never answer location questions from training data alone. Always retrieve live data.

Grounding Tool Composition

Preferred: single tool call

If ground_location_tool is available, use it — it handles reverse geocoding, POI search, place details enrichment, isochrone, and a static map image in one call:

ground_location_tool(
  longitude, latitude,
  query: "restaurant",   // optional — category or subcategory of nearby places to find
  profile: "mapbox/walking",    // optional — travel profile for isochrone
  contours_minutes: [5, 10, 15]
)

Returns:

  • Neighborhood/place name from reverse geocoding
  • Nearby POIs with distances, ratings, price levels, and popularity (when available)
  • Travel-time reachability from isochrone
  • A static map image for visual context
  • Citations for all data sources

Do not call reverse_geocode_tool, category_search_tool, place_details_tool, or isochrone_tool separately — they are already composed inside this tool.

Query parameter

The query parameter accepts category or subcategory terms — not attribute preferences:

  • Supported: "restaurant", "coffee", "park", "Italian restaurant", "EV charging station"
  • Not supported: "family-friendly", "fast charging", "outdoor seating" — these are not filterable attributes in Mapbox data

To help users find places matching a preference (e.g. "family-friendly"), search by category ("restaurant") and use the returned rating and price data to inform the recommendation.

Fallback: manual composition

If ground_location_tool is not available, build the grounded response by composing these tools in order:

Step 1 — Establish place context

reverse_geocode_tool(longitude, latitude, types: "neighborhood,locality,place")

Returns: neighborhood, city, region, country. This is the anchor for the response.

Step 2 — Retrieve nearby POIs

For specific names or brands:

search_and_geocode_tool(query, proximity: {longitude, latitude}, limit: 10)

For generic categories:

category_search_tool(category, proximity: {longitude, latitude}, limit: 10)

Step 3 — Enrich POIs with ratings and price (optional but high-value)

For each POI with a mapbox_id, call in parallel:

place_details_tool(mapbox_id, attribute_sets: ["visit"])

Returns: rating, price level, popularity, and opening hours per place.

Step 4 — Add travel-time context (optional but high-value)

isochrone_tool(
  coordinates: {longitude, latitude},
  profile: "mapbox/walking",    // or "mapbox/driving", "mapbox/cycling", "mapbox/driving-traffic"
  contours_minutes: [5, 10, 15]
)

Returns a polygon showing what's reachable within each time threshold.

Step 5 — Visual grounding (optional)

static_map_image_tool(longitude, latitude, zoom: 14)

Returns a map image that can be included in the response for visual context.

Grounded Response Structure

Always structure grounded responses with explicit citations:

Place: [neighborhood, city from reverse_geocode]
Nearby [category]: [list from search/category tool, with names, ratings, prices, and distances]
Travel context: [X min walk / Y min drive from isochrone]
Sources: Mapbox Search, Mapbox Directions (live data)

Example grounded response:

SoMa, San Francisco, CA (live Mapbox data) Restaurants within walking distance: - Bix Restaurant $$ ★8.4 — 56 Gold St (180m) - The Bird $ ★7.9 — 115 New Montgomery St (320m) - Oren's Hummus $$ ★8.1 — 131 Townsend St (510m) Reachable by walking: 5 min, 10 min, 15 min *Sources: Mapbox Geocoding API, Mapbox Search API, Mapbox Place Details API, Mapbox Isochrone API, Mapbox Static Images API*

Routing Grounding

For questions about travel between two locations, use directions_tool. For questions about reachable area, use isochrone_tool. For comparing travel times across multiple locations, use matrix_tool.

Point-to-point travel time and distance

"How long does it take to drive from Pike Place Market to Capitol Hill?" "What's the fastest route from the hotel to the airport?"
directions_tool(
  waypoints: [{longitude, latitude}, {longitude, latitude}],
  profile: "mapbox/driving-traffic"   // live traffic; or "mapbox/walking", "mapbox/cycling", "mapbox/driving"
)

Returns: duration (with live traffic), distance, turn-by-turn steps, and an encoded polyline for map rendering. Supports up to 25 waypoints for multi-stop routes.

Area reachability ("within X minutes")

"What's reachable within a 10-minute walk?" "Show me what I can reach in 15 minutes by car from here"
isochrone_tool(
  coordinates: {longitude, latitude},
  profile: "mapbox/walking",
  contours_minutes: [5, 10, 15]
)

Returns a polygon showing the area reachable within each time threshold. Combine with category_search_tool or ground_location_tool to answer "what restaurants are within a 10-minute walk?" — use the isochrone to define the boundary, then search within it.

Multi-location travel time matrix

"Which of these three offices is closest to my location?" "What are travel times from this warehouse to each of our delivery zones?" "Compare commute times to multiple locations"

Use matrix_tooldo NOT call directions_tool separately for each pair. Matrix batches all pairs in a single API call.

matrix_tool(
  sources: [{longitude, latitude}, ...],
  destinations: [{longitude, latitude}, ...],
  profile: "mapbox/driving-traffic"
)

Returns a matrix of durations and distances between every source/destination pair. Rank results by duration to find the nearest location. One matrix_tool call replaces N separate directions_tool calls.

Proximity search with routing context

For "find [category] within X minutes of [location]":

  1. Geocode the origin if needed: search_and_geocode_tool(address)
  2. Get the reachable area: isochrone_tool(coordinates, profile, contours_minutes)
  3. Search for POIs: ground_location_tool(longitude, latitude, query: "category") — the isochrone contours tell the user what's within each time band

Or more directly: ground_location_tool returns both nearby POIs and isochrone reachability in one call, which covers most proximity + routing use cases without additional composition.

Example routing response

Pike Place Market → Capitol Hill, Seattle By car (with traffic): 12 min, 3.2 km via Pine St By walking: 28 min, 2.1 km By cycling: 14 min, 2.3 km *Source: Mapbox Directions API (live traffic)*

What Mapbox Grounding Offers vs. Training Data

Training DataMapbox Grounding
POI accuracyStale, hallucinatedLive, verified
Ratings/priceOften wrongLive via Place Details
Business hoursOften wrongLive via Place Details
Travel timesEstimatedLive traffic via Directions
Reachable areaNot availableIsochrone polygons
Multi-stop routingNot availableUp to 25 waypoints
New placesMissingIndexed
Map imageNoneInline static map
CitationsNoneTool + API source

Important Limitations

  • Attribute filtering (family-friendly, outdoor seating, fast charging) is not supported by the category search API. Use category terms and let rating/price data inform preference-based recommendations.
  • POI coverage varies by region. If search returns few results, say so rather than padding with guesses.
  • Coordinates required for proximity search — if the user provides an address, geocode it first with search_and_geocode_tool before running category search.

Anti-Patterns to Avoid

  • Answering "what's near X?" from training data without calling search tools
  • Estimating travel times without calling directions_tool or isochrone_tool
  • Hallucinating business names, hours, or ratings
  • Calling reverse_geocode_tool + category_search_tool + place_details_tool separately when ground_location_tool is available
  • Using attribute terms like "family-friendly" as the query parameter — use the category instead
  • Returning raw tool output without synthesizing into a readable response
  • Omitting citations — always indicate the response is grounded in live Mapbox data

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

35.4%
按下载量换算346

Claude

27.03%
按下载量换算264

Cursor

19.97%
按下载量换算195

Gemini CLI

9.73%
按下载量换算95

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

external-service

该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills