使用场景

绘制任意地点周边的竞争对手与本地需求地图

在 Google Maps 上找出某地点附近某类商家的名称、地址、电话、网站、评分、评论数、营业时间和坐标,以 JSON 返回。

预付费,无订阅REST 或 MCP一个密钥搞定模型、数据和智能体
Google Mapslovelyjsonitems[0]"name": "Bean There Coffee""address": "610 Congress Ave, Aus…"rating": 4.6"reviews": 1284"website": "beanthere.example""coordinates": "30.2686,-97.7431"

在开第二家店、选定加盟区域或决定在哪里投放广告之前,你需要知道那里已经有谁:有多少竞争对手、评分如何、彼此相距多远。在 Google Maps 里一个个点开,只能得到十几条结果,看不出一个市场。Lovely Router 给你完整的图景。发送商家类型和地点,每个地点返回一个 JSON 对象,按地点个数从预付费余额中计费。用一个 API 密钥,就能从笔记本、选址模型或 AI 智能体中调用。

交给你的 AI 智能体

把这段提示词复制到 Claude Code、Cursor、Codex 或任何编程智能体中。它会告诉智能体文档在哪里,以及如何使用你的 API 密钥。

绘制任意地点周边的竞争对手与本地需求地图. Use the Lovely Router data tools: each returns JSON and is billed per result.

- Docs (read first): https://lovelyrouter.com/docs/tools/find.md and https://lovelyrouter.com/docs/tools/run.md
- Plan first: POST https://lovelyrouter.com/v1/tools/suggest with `{"task": "<my task in plain words>"}` (free). It returns the tools to run in order, each with an example `input`, the `input_required` fields, an estimated cost and a ready-made `run` request. Replace the example values with my task's; if a field is unclear, read the tool with GET https://lovelyrouter.com/v1/tools/<id>. To browse instead, POST https://lovelyrouter.com/v1/tools/discover searches the catalog.
- Show me the plan and its estimated cost (`total_est_cost_usd`) before running anything large.
- Run: POST https://lovelyrouter.com/v1/tools/<id>/run with `{"input": {...}, "max_results": N}`. A 200 has the finished run with `items`; a 202 means it is still running, so poll the `poll` path until `status` is `succeeded`, `failed`, `timed_out` or `stopped`.
- Only delivered results are billed. Keep max_results small on the first run, check the output, then scale up.
- If you support MCP, connect https://lovelyrouter.com/mcp instead (Streamable HTTP, same key; https://lovelyrouter.com/docs/tools/mcp.md) and use suggest_tools, get_tool and run_tool.
- Auth: read my API key from the LOVELY_API_KEY environment variable and send it as `Authorization: Bearer $LOVELY_API_KEY`. Never print or commit the key. If it is not set, ask me to create one at https://lovelyrouter.com/app/keys.
- Billing is prepaid: every call is charged to my balance, so test with a small request before running anything large.
- Every docs page is plain Markdown; the full index is https://lovelyrouter.com/llms.txt.

My task: <the inputs (links, keywords or accounts) and how many results you need>
01

工作原理

010203
  1. 界定市场

    用 searchTerms 选择商家类型,用 location 选择区域;如果默认范围不合适,再用 radius 设置公里数。

  2. 设置上限后运行工具

    把搜索连同 maxResults 和 max_results 发送到 POST /v1/tools/google-maps-places/run。运行会从你的余额中预留它的最高费用,并以 JSON 返回地点。

  3. 分析地图

    绘制坐标,按评分和评论数排序,并比较不同区域。竞争密集但评分不高的区域,和商家稀少的区域,是两种不同的机会。

02

一次请求获取地点

搜索 Google Maps 地点接受 searchTerms 和 location。一个地点对应一条结果,一次运行最多返回 200 个:

curl https://lovelyrouter.com/v1/tools/google-maps-places/run \
  -H "Authorization: Bearer $LOVELY_API_KEY" \
  -H "content-type: application/json" \
  -d '{
    "input": {
      "searchTerms": ["coffee shop"],
      "location": "Austin, Texas, USA",
      "maxResults": 10,
      "language": "en"
    },
    "max_results": 10
  }'

运行超过 60 秒仍未结束时会返回 202;轮询方法见运行工具。加上 minRating(2.0 到 4.5,以 0.5 为步长)可以只保留评分较高的地点,加上 openNow 则只保留当前正在营业的地点。

03

每个地点包含什么

字段组你能获得的内容
身份名称和地址
联系方式电话和网站
口碑平均评分和评论数
营业时间营业时间
位置坐标
04

实用配方

签约租赁前评估一个街区。

围绕该地址搜索你的品类,数一数有多少个地点,再看平均评分。如果有很多地点评分高于 4.5,说明顾客已经有不错的选择。

找出薄弱的竞争对手。

不使用 minRating 运行,按评分升序排序并保留评论数足够多的地点,记下可能存在服务空白的地方。

比较两座城市。

对两座城市运行同一个搜索,比较地点数量和评分中位数,决定往哪里扩张。

覆盖一个宽泛的品类。

传入多个 searchTerms,例如 restaurants、cafe 和 fast food。结果会合并为一个去重后的集合,而单个词只能覆盖市场的一部分。

为外勤团队绘制地图。

导出名称、地址和坐标,再根据坐标规划拜访路线。

更想直接用自然语言提问?连接 MCP 服务器,然后对 Claude Code 或 Cursor 说:"找出奥斯汀的咖啡店,按评论数排序,告诉我评分最高且评论最少的五家。把 max_results 设为 100。"

06

费用说明

按地点付费:启动运行时会预留它的最高费用,即每次调用费加上每个地点的费用乘以 max_results,结束后按实际返回的结果结算,预留的剩余部分退回你的余额。失败或超时的运行只为已交付的地点付费,在开始时就被拒绝的运行不收费。

绘制 150 个地点,就按 150 个地点计费。没有订阅,也没有每月最低消费:最低充值 $5,工具和模型共用一个余额。上方卡片显示的是当前价格;价格页面列出了所有工具。

07

常见问题

?
一次搜索最多能返回多少个地点?+

对每个搜索词,附近搜索最多返回大约 60 个地点。一次运行最多返回 200 个地点,所以要覆盖大片区域,请使用多个搜索词或多个地点。

搜索范围有多大?+

搜索范围大约覆盖 location 周围 radius 公里。设置 radius 即可放大或缩小。

能按评分筛选吗?+

可以。minRating 接受 2.0、2.5、3.0、3.5、4.0 或 4.5,只保留平均评分不低于该值的地点。

会返回邮箱吗?+

不会。这个工具返回的是商家的基本信息:名称、地址、电话、网站、评分、评论数、营业时间和坐标。要获取商家网站上的邮箱,请使用 google-maps-leads。

需要订阅吗?+

不需要。你向预付费余额充值,每次运行从中扣费。失败的运行只为已交付的结果付费,不会自动续费。

要研究的不止一个市场?请看旅行与房地产数据、工具目录和价格页面。

一个预付费密钥,搞定模型、数据和智能体

无需订阅。充值后按需使用,每笔费用都能在日志中查看。