DaedalMap Administrative Boundaries (loc_id to polygon)

com.daedalmap由 daedalmap.com 發布官方發布者v1.3.2更新於 Oct 24, 2026

Retrieve loc_id boundary metadata, polygons, supported scopes, and comparisons.

已驗證Streamable HTTP可網頁執行資料庫位置與生活資料與分析

概覽

AI 產生的概覽

將座標與地理編碼解析為行政區劃,並回傳邊界多邊形以及不同地理體系之間的對照關係。

可以做什麼
DaedalMap 透過 loc_id 地理身分模型提供工具,包括 resolve_point、resolve_deep_point、get_loc_id_info、compare_geographies、convert_reference、get_geometry、get_catalog、get_pack、get_data、get_event、identify_dataset_geography 與 identify_reference_system。助理可以把座標或參考編碼轉換為行政區劃比對結果、取得具版本編號的邊界形狀、在普查區、郵遞區、流域與選區等體系之間轉換編碼,並查詢維護好的資料包。每個工具都接受嚴格的 JSON 參數,呼叫格式錯誤時會回傳附有復原指引的型別化錯誤。
適用情境
當任務涉及行政區劃地理資訊時使用:把點或編碼比對到具體地點、取得邊界多邊形、串接使用不同地理體系的資料集,或查詢維護好的災害、人口、經濟與氣候資料包。它面向地理與資料工作,而非通用的網頁或檔案任務。
執行需求
託管伺服器是遠端 streamable HTTP 端點,探索類與小規模查詢不需安裝或帳號。較大的點或參考編碼批次查詢以及部分資料包按量計費,需要帳戶額度與 API 金鑰。自架需執行開放執行環境,使用 Python 與 pip,透過 DATA_ROOT 設定資料資料夾,內建聊天面板可選用 OPENAI_API_KEY 或 ANTHROPIC_API_KEY。
安裝前請注意
按量計費的呼叫會消耗帳戶額度;據說明付費呼叫會在扣款前回傳確切價格,get_catalog 會回報每個資料包的存取通道。自架執行個體在未設定商業驗證器時,付費通道會回傳 commercial_access_unavailable。此儲存庫不附帶資料資料夾,資料包需另行安裝;雲端資料模式會從你設定的物件儲存讀取 Parquet。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 DaedalMap Administrative Boundaries (loc_id to polygon),將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。

交給代理程式安裝

把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。

閱讀 https://sourceweft.com/mcp/com.daedalmap%2Fboundaries/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。

檢視代理程式所依據的安裝指南

其他 MCP 客戶端

把它新增到你客戶端的 mcpServers 設定中。

{
  "mcpServers": {
    "daedalmap-administrative-boundaries-loc": {
      "type": "http",
      "url": "https://app.daedalmap.com/mcp/boundaries"
    }
  }
}

README

DaedalMap

Bring your data. Connect its geography.

DaedalMap is geographic interoperability infrastructure: a loc_id identity model, versioned boundary geometry, published crosswalks between geography systems, and maintained data packs. Resolve coordinates and reference codes to administrative matches, pull compatible shapes and data, and follow crosswalks into other systems such as census tracts, postal areas, watersheds, and electoral districts.

Use it through a remote MCP server, an HTTP API, a map app, downloadable files, or this repository, which is the open runtime behind all of them.

Website | App | Agent docs | Geometry | Data packs | Downloads | Convert a file | llms.txt

Connect an agent

The hosted MCP server needs no install or account for discovery:

text
https://app.daedalmap.com/mcp?registry=github

Claude Code:

bash
claude mcp add --transport http daedalmap 'https://app.daedalmap.com/mcp?registry=github'

Codex:

bash
codex mcp add daedalmap --url 'https://app.daedalmap.com/mcp?registry=github'

Any client that supports streamable HTTP MCP can use the same URL. Start with get_tool_help with topic='geometry' for geography jobs, or get_catalog, then get_pack, then get_data for data. Setup for other clients is in the agent docs.

Discovery and small geography lookups are free. Larger point/reference batches and some data packs are metered: a paid call returns its exact price before any charge and is paid from account credit with an API key. get_pack reports the access lane for the selected data pack.

Tools

JobTools
Learn the modelget_tool_help with a topic or exact tool name
Find what existsget_catalog, then get_pack for a data pack or get_geography for a geometry family or scope
Query maintained dataget_data with a pack_id, exact metrics, and structured filters
Inspect one disaster eventget_event with an exact event_id returned by get_data
Coordinates to placesresolve_point, then resolve_deep_point when Admin 4-6 or one deeper family is needed
Identify a column of codesidentify_dataset_geography, identify_reference_system
Translate codes between systemsconvert_reference
Inspect and relate placesget_loc_id_info, compare_geographies
Retrieve shapesget_shape with exact loc_ids

Each tool takes strict JSON arguments. The calling model turns a user's question into those arguments, and the server returns typed errors with recovery guidance when a call is malformed.

This table is the complete public roster, not a roadmap. Bulk export/job builders and direct upstream live-feed wrappers remain internal or paused and are intentionally absent from tools/list.

The loc_id model

loc_id is DaedalMap's geographic identity model. The administrative spine is the main hierarchy and default join path:

text
USA                      countryUSA-CA                   stateUSA-CA-037               countyUSA-CA-037-221710        census tract

Other geography families, such as postal areas, watersheds, tribal areas, and marine regions, keep their own loc_id identities. Published crosswalks connect them to the spine and to each other, and each crosswalk row carries its relationship type, overlap weight, source, and vintage. A direct join works when both datasets declare the same identity; otherwise the connection runs through a crosswalk.

Schema details are in docs/DATA_SCHEMAS.md.

Coverage

Geometry: global baseline plus 8+ deeper countries. The same geography tools work worldwide down to Admin 2. Country releases add deeper administrative tiers and reference families for Australia, Brazil, Canada, France, Germany, Mexico, the United Kingdom, the United States, and more as releases publish.

Data: 20+ maintained data packs covering natural hazards (earthquakes, tsunamis, volcanoes, hurricanes, tornadoes, wildfires, floods, weather alerts), hazard risk and environmental burden, economic and business indicators, currency rates, population, and climate.

The catalogs are the authority for what is available now:

Downloads

The Windows launcher's public source, build script, and tests are in tools/launcher. Its portable download keeps programs and its managed runtime in the launcher folder by default.

The Downloads page has three kinds of file:

  • Program - the map app or local MCP runtime, to run DaedalMap on your machine.
  • Data pack - maintained records for a subject, with source and release evidence.
  • Geometry package - boundaries and reference geography for a country or family.

Run it yourself

This repository is the open runtime: the FastAPI server, MCP and HTTP API, and map frontend. Use it to self-host, run against your own data, or extend the engine.

The Network expansion also lives in this repository. It adds optional rail, river, and power layers to the local Mapping map and provides a separate spreadsheet editor and Parquet CLI that run without Mapping. The older Lake County road map editor is archived reference code.

To develop one local program without checking out every source directory, see Work on one local tool. The tool source entries cover Mapping, Network, Research MCP, Geometry MCP, and the optional AI expansion, including their current migration status.

powershell
cd county-mappip install -r requirements.txtCopy-Item .env.example .env

Set a data folder in .env:

env
INSTALL_MODE=localRUNTIME_MODE=localDATA_ROOT=C:/path/to/your/data

Leave DATA_ROOT blank to use the default app-data folder. No cloud storage, database, or account is needed. The repository does not ship a data folder; docs/DATA_INSTALLATION.md covers installing packs.

powershell
python app.py

The app opens at http://localhost:7000, and the same MCP server is at http://localhost:7000/mcp. Discovery routes:

  • GET /api/v1/guide
  • GET /api/v1/catalog
  • GET /api/v1/packs/{pack_id}
  • POST /api/v1/query/dataset

Model API keys are optional. OPENAI_API_KEY or ANTHROPIC_API_KEY powers the built-in chat panel only; MCP clients bring their own model. A self-hosted instance returns commercial_access_unavailable on paid lanes unless you configure a commercial verifier.

Runtime modes

INSTALL_MODERUNTIME_MODEUse
locallocalYour machine, your data folder
localcloudYour machine, Parquet read from object storage you configure
cloudcloudA server deployment reading object storage

In cloud data mode the runtime caches small metadata files locally and queries Parquet in object storage through DuckDB httpfs. Details are in docs/LOCAL_AND_HOSTED.md.

Documentation

Contact

Questions, feedback, and self-hosting issues: [email protected]

License

MIT. Data packs and geometry carry their own source licenses, listed in each catalog entry.

For agents reading this repository

If asked to assess DaedalMap, start with the public context map, then use API and MCP contracts for hosted tools and data installation for local artifacts. The source checkout does not include the data packs or geometry packages. Check the live data catalog and geometry catalog before describing current coverage. Distinguish repository code, downloadable artifacts, and hosted service behavior in your answer.

來源:README.md,提交 284985a

工具

7

get_tool_help

Get Tool Help

Describe one tool visible on this facade, including its exact contract, or return a bounded workflow overview for one supported topic.

輸入參數topicquestiontool_name

get_catalog

List Published Packs or Geographies

Choose data or geometry to list published pack IDs or family and scope IDs. The response includes a complete catalog download URL. Use get_pack for data or get_geography for geometry. Current catalog: The same geography tools work worldwide across a cataloged baseline of 252 geographic entities, reaching up to Admin 2. Where additional country releases are available, the same calls automatically return deeper administrative tiers or maintained reference families. Additional detail is currently available for Australia, Brazil, Canada, France, Germany, Mexico, United Kingdom, United States.

輸入參數catalog必填

get_pack

Inspect One Data Pack

Inspect one exact data pack ID for its metrics, time coverage, and query metadata before get_data.

輸入參數pack_id必填

get_geography

Inspect One Geography Family or Scope

Inspect one published geometry family across scopes or one scope across families. Returns coverage and known editions from catalog metadata only. Optional year selects the latest admitted edition no later than that year when the selected catalog has an edition index; an unavailable index is reported explicitly.

輸入參數yearscope_idfamily_id

get_loc_id_info

Inspect Direct loc_id Connections

Look up one known loc_id or a small batch in the selected reference graph. Return its identity and directly recorded loc_id connections, with family, direction, and relationship evidence. Each ID returns at most 50 connections and an explicit has_more flag. This tool does not expand descendants, infer containment, read shapes, search catalogs, or consult external adapters. No payment required.

輸入參數loc_idloc_idsbatch_idrequest_id

compare_geographies

Compare Geographic Identities

Compare two known loc_ids using selected reference-graph identity and direct relationship evidence. Verified Admin ancestry can prove containment; a typed graph edge can prove only the relation it declares. An explicit negative edge returns no_overlap; a missing edge returns unknown. This tool never reads polygons or computes shape intersections. Use an external identifier bridge before this call when the input is not a loc_id. No payment required.

輸入參數as_ofitemsbatch_idleft_as_ofrequest_idleft_loc_idright_as_ofright_loc_idinclude_successors

get_shape

Retrieve Shapes for Known loc_ids

Shape lookup for exact existing loc_ids only. The default returns shape availability, centroid, and bounding box; include_polygon=true adds GeoJSON coordinates. Obtain any descendant IDs before this call. Historical geometry is returned first and successors are never substituted automatically. Year selection is not yet supported.

輸入參數loc_idloc_idsbatch_idrequest_idinclude_polygon

版本歷史

5
  1. v1.3.2最新Oct 6, 2026
  2. v1.3.0Sep 28, 2026
  3. v1.2.0Sep 25, 2026
  4. v1.1.0Sep 24, 2026
  5. v1.0.4Sep 16, 2026

評分

已滿足適用檢查項的 100%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通必需25 分
  • 已宣告認證方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分

其他 Daedalmap 整合