360 Secure SkillHub
360 安全技能中心

local

该 Skill 通过本地地点 API 解析地点、按关键词和坐标范围搜索附近场所,并获取单个地点详情;结果包含名称、地址、评分、类型和营业状态。首次使用需运行环境检查脚本。

ray-778
ray-778
热度 7.64
最近更新 2026-08-24 11:00:19
分类:生活依赖:代码执行 / 第三方 API应用场景:推荐 / 旅行

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add local
Metadata
name
local
description
Search for nearby places (restaurants, cafes, gyms) with location resolution and place details.
version
1.0.0
metadata
{"openclaw":{"emoji":"📍","requires":{"bins":["python3"]}}}

Local

Find places near you. Resolve a location first, then search for places around it.

Quick Start

Run the environment check once before first use:

python3 scripts/check_env.py

The check verifies Python, network access and local proxy availability, then prints a short summary.

Usage

  1. Resolve location
curl -X POST http://127.0.0.1:8000/locations/resolve \
  -H "Content-Type: application/json" \
  -d '{"location_text": "Soho, London", "limit": 5}'
  1. Search places
curl -X POST http://127.0.0.1:8000/places/search \
  -H "Content-Type: application/json" \
  -d '{"query": "coffee shop", "location_bias": {"lat": 51.5, "lng": -0.13, "radius_m": 1000}, "limit": 10}'
  1. Get details
curl http://127.0.0.1:8000/places/PLACE_ID

Response Format

{
  "results": [
    {
      "place_id": "ChIJ...",
      "name": "Coffee Shop",
      "address": "123 Main St",
      "location": {"lat": 51.5, "lng": -0.1},
      "rating": 4.6,
      "types": ["cafe", "food"],
      "open_now": true
    }
  ]
}

Present results with name, rating, address and open status. Offer to fetch details or refine the search.