You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

调用findplacefromtext查找UnderDog Property Services返回ZERO_RESULTS求助

解决Google Places FindPlaceFromText无法定位UnderDog Property Services的问题
  • 使用带地址补充的精确搜索词
    仅用名称可能因为重名或数据匹配规则限制无法命中,结合目标地点的城市/街道信息构造查询:

    curl --location 'https://maps.googleapis.com/maps/api/place/findplacefromtext/json?input=UnderDog%20Property%20Services%20Snohomish%20WA&inputtype=textquery&key=<你的API密钥>&fields=formatted_address%2Cplace_id%2Cname&language=en'
    

    或者加入街道信息进一步缩小范围:

    curl --location 'https://maps.googleapis.com/maps/api/place/findplacefromtext/json?input=UnderDog%20Property%20Services%201301%201st%20St%20Snohomish&inputtype=textquery&key=<你的API密钥>&fields=formatted_address%2Cplace_id%2Cname&language=en'
    
  • 修正locationbias参数的精确格式
    之前的locationbias可能因格式无效未生效,使用目标地点的经纬度设置圆形范围偏向:

    curl --location 'https://maps.googleapis.com/maps/api/place/findplacefromtext/json?input=UnderDog%20Property%20Services&inputtype=textquery&key=<你的API密钥>&fields=formatted_address%2Cplace_id%2Cname&language=en&locationbias=circle:500@47.9037,-122.0592'
    

    其中circle:500表示以指定坐标为中心、500米为半径的搜索范围,足以覆盖目标地点。

  • 切换到Text Search API备选方案
    FindPlaceFromText对精确匹配要求较高,若仍无结果,可尝试对模糊匹配支持更好的Text Search API:

    curl --location 'https://maps.googleapis.com/maps/api/place/textsearch/json?query=UnderDog%20Property%20Services%20Snohomish&key=<你的API密钥>&fields=formatted_address%2Cplace_id%2Cname&language=en'
    

内容的提问来源于stack exchange,提问作者Pavel Schoffer

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.19 15:55:17