google-maps

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Google Maps

Google Maps

Available Tools

可用工具

  • search_places(query, location?, radius?, type?, open_now?, language?): Search for places using text query.
    • query
      (string, required): Search text (e.g., "restaurants in Seoul")
    • location
      (string, optional): Center location as "lat,lng" (e.g., "37.5665,126.9780")
    • radius
      (integer, optional): Search radius in meters (max 50,000)
    • type
      (string, optional): Place type filter (e.g., "restaurant", "tourist_attraction", "hotel")
    • open_now
      (boolean, optional, default: false): Only return currently open places
    • language
      (string, optional, default: "en"): Language code
  • search_nearby_places(location, radius, keyword?, type?, rank_by?, open_now?, language?): Search near specific coordinates.
    • location
      (string, required): Center as "lat,lng" (e.g., "37.5665,126.9780")
    • radius
      (integer, required): Search radius in meters (max 50,000)
    • keyword
      (string, optional): Search keyword
    • type
      (string, optional): Place type filter
    • rank_by
      (string, optional, default: "prominence"): "prominence" or "distance"
    • open_now
      (boolean, optional, default: false): Only open places
    • language
      (string, optional, default: "en"): Language code
  • get_place_details(place_id, language?, reviews_sort?): Get detailed place info including reviews and hours.
    • place_id
      (string, required): Place ID from search results
    • language
      (string, optional, default: "en"): Language code
    • reviews_sort
      (string, optional, default: "most_relevant"): "most_relevant" or "newest"
  • get_directions(origin, destination, mode?, alternatives?, avoid?, language?): Get directions between two locations.
    • origin
      (string, required): Starting point (address or "lat,lng")
    • destination
      (string, required): Destination (address or "lat,lng")
    • mode
      (string, optional, default: "driving"): "driving", "walking", "bicycling", "transit"
    • alternatives
      (boolean, optional, default: false): Return alternative routes
    • avoid
      (string, optional): "tolls", "highways", or "ferries"
    • language
      (string, optional, default: "en"): Language code
  • geocode_address(address, language?, region?): Convert a text address to geographic coordinates.
    • address
      (string, required): Address to geocode
    • language
      (string, optional, default: "en"): Language code
    • region
      (string, optional): Country code for regional bias
  • reverse_geocode(latlng, language?): Convert coordinates to a human-readable address.
    • latlng
      (string, required): Coordinates as "lat,lng" (e.g., "37.5665,126.9780")
    • language
      (string, optional, default: "en"): Language code
  • show_on_map(map_type, markers?, directions?, center?, zoom?): Display locations or routes on an interactive map.
    • map_type
      (string, required): "markers" (location pins), "directions" (route), or "area"
    • markers
      (array, required for "markers"): List of marker objects with lat, lng
    • directions
      (object, required for "directions"): Route data with origin and destination
    • center
      (object, optional): Map center {lat, lng}
    • zoom
      (integer, optional): Zoom level 1-20
  • search_places(query, location?, radius?, type?, open_now?, language?): 按文本查询搜索地点。
    • query
      (字符串,必填): 搜索文本(例如:"首尔的餐厅")
    • location
      (字符串,可选): 中心位置,格式为“纬度,经度”(例如:"37.5665,126.9780")
    • radius
      (整数,可选): 搜索半径,单位为米(最大50000)
    • type
      (字符串,可选): 地点类型筛选(例如:"餐厅"、"旅游景点"、"酒店")
    • open_now
      (布尔值,可选,默认值: false): 仅返回当前营业的地点
    • language
      (字符串,可选,默认值: "en"): 语言代码
  • search_nearby_places(location, radius, keyword?, type?, rank_by?, open_now?, language?): 按指定坐标搜索周边地点。
    • location
      (字符串,必填): 中心位置,格式为“纬度,经度”(例如:"37.5665,126.9780")
    • radius
      (整数,必填): 搜索半径,单位为米(最大50000)
    • keyword
      (字符串,可选): 搜索关键词
    • type
      (字符串,可选): 地点类型筛选
    • rank_by
      (字符串,可选,默认值: "prominence"): "prominence"(知名度)或 "distance"(距离)
    • open_now
      (布尔值,可选,默认值: false): 仅返回营业中的地点
    • language
      (字符串,可选,默认值: "en"): 语言代码
  • get_place_details(place_id, language?, reviews_sort?): 获取地点详细信息,包括评论和营业时间。
    • place_id
      (字符串,必填): 搜索结果中的地点ID
    • language
      (字符串,可选,默认值: "en"): 语言代码
    • reviews_sort
      (字符串,可选,默认值: "most_relevant"): "most_relevant"(最相关)或 "newest"(最新)
  • get_directions(origin, destination, mode?, alternatives?, avoid?, language?): 获取两地之间的路线。
    • origin
      (字符串,必填): 起点(地址或“纬度,经度”格式)
    • destination
      (字符串,必填): 终点(地址或“纬度,经度”格式)
    • mode
      (字符串,可选,默认值: "driving"): "driving"(驾车)、"walking"(步行)、"bicycling"(骑行)、"transit"(公共交通)
    • alternatives
      (布尔值,可选,默认值: false): 返回备选路线
    • avoid
      (字符串,可选): "tolls"(收费站)、"highways"(高速公路)或 "ferries"(渡轮)
    • language
      (字符串,可选,默认值: "en"): 语言代码
  • geocode_address(address, language?, region?): 将文本地址转换为地理坐标。
    • address
      (字符串,必填): 待编码的地址
    • language
      (字符串,可选,默认值: "en"): 语言代码
    • region
      (字符串,可选): 用于区域偏好的国家代码
  • reverse_geocode(latlng, language?): 将坐标转换为人类可读的地址。
    • latlng
      (字符串,必填): 坐标,格式为“纬度,经度”(例如:"37.5665,126.9780")
    • language
      (字符串,可选,默认值: "en"): 语言代码
  • show_on_map(map_type, markers?, directions?, center?, zoom?): 在交互式地图上显示地点或路线。
    • map_type
      (字符串,必填): "markers"(地点标记)、"directions"(路线)或 "area"(区域)
    • markers
      (数组,当map_type为"markers"时必填): 包含lat、lng的标记对象列表
    • directions
      (对象,当map_type为"directions"时必填): 包含起点和终点的路线数据
    • center
      (对象,可选): 地图中心 {lat, lng}
    • zoom
      (整数,可选): 缩放级别1-20

Usage Guidelines

使用指南

  • ALWAYS call show_on_map after collecting location data — visual maps are the primary value.
  • Preserve
    place_id
    from search results for use with
    get_place_details
    .
  • Infer transportation mode from context (driving for long distances, walking for short ones).
  • Show 1-5 most relevant places per map.
  • 务必在收集到地点数据后调用show_on_map — 可视化地图是核心价值所在。
  • 保留搜索结果中的
    place_id
    ,以便用于
    get_place_details
  • 根据上下文推断交通方式(长距离用驾车,短距离用步行)。
  • 每张地图显示1-5个最相关的地点。

Response Pattern

响应模式

Follow the Text -> Map -> Text sequence. Do NOT call
show_on_map
in parallel with other tool calls.
  1. Text: Introduce what you'll show
  2. Map: Call
    show_on_map
    to display results
  3. Text: Explain the results
Multiple categories: Use separate maps in sequence — never parallel.
遵循文本 -> 地图 -> 文本的顺序。请勿将
show_on_map
与其他工具调用并行执行。
  1. 文本: 介绍即将展示的内容
  2. 地图: 调用
    show_on_map
    显示结果
  3. 文本: 解释结果
多类别场景: 按顺序使用单独的地图 — 切勿并行。