我正在尝试通过 Places API 进行查询,以查找与华盛顿特区附近的滑水板相关的地点。然而,我得到的结果显示律师事务所。这是我正在做的查询:
https://maps.googleapis.com/maps/api/place/search/json?location=38.897244,-77.0413344&sensor=false&radius=5000&keyword=wakeboards&key=XXXYYYZZZ
而且,这是我得到的结果......
{“html_attributions”:[],“结果”:[{“几何”:{
"location" : {
"lat" : 38.9088260,
"lng" : -77.04382099999999
}
},
"icon" : "http://maps.gstatic.com/mapfiles/place_api/icons/generic_business-71.png",
"id" : "54ebf52e053beb9b3f4d8c753975571eb532a8d7",
"name" : "Marshfield Associates",
"reference" : "snip",
"types" : [ "finance", "establishment" ],
"vicinity" : "21 Dupont Cir NW # 500, Washington"
},
{
"geometry" : {
"location" : {
"lat" : 38.8932170,
"lng" : -77.02048499999999
}
},
"icon" : "http://maps.gstatic.com/mapfiles/place_api/icons/generic_business-71.png",
"id" : "82d45a91169dda03932d8cba1cbb66007ce985ef",
"name" : "Gravitas Capital Advisors",
"reference" : "snip",
"types" : [ "finance", "establishment" ],
"vicinity" : "601 Pennsylvania Ave NW, Washington"
},
{
"geometry" : {
"location" : {
"lat" : 38.9195570,
"lng" : -77.027940
}
},
"icon" : "http://maps.gstatic.com/mapfiles/place_api/icons/generic_business-71.png",
"id" : "dba09f9090c092573b8c4ab0de10b8d2ac921e3e",
"name" : "Casa Iris",
"reference" :"shortersnip",
"types" : [ "establishment" ],
"vicinity" : "2201 12th Street Northwest, Washington"
} ], "status" : "OK" }
显然,“Marshfield Associates”不销售滑水板。那么,我在这个查询中做错了什么?我也通过第三方 API/包装器尝试过,它返回相同的结果。
感谢您的任何帮助,您可以提供。
Ps 对 json 响应的糟糕格式感到抱歉。不知道如何让它很好地包装在 SO 中。