Google 地点 Api rankby=distance 无效

Google Places Api rankby=distance not working

我正在使用 Google 个地点 api 来仅获取离我所在位置最近的一些地点,但有些结果根本不显示(例如 tbilisimarriot 和 courtyardbymarriot 结果)并且列表也不存在t 从最近到最长的地方正确显示。我的请求 url 是:

https://maps.googleapis.com/maps/api/place/nearbysearch/json?location=41.711586,44.748187&rankby=distance&keyword=(tbilisimarriot)OR(courtyardbymarriot)OR(ambassadori)OR(mercure)OR(ibishotel)OR(holidayinn)OR(cityavenue)OR(hotelcitycenter)OR(museumhotel)OR(hotelastoria)OR(citadelnarikala)OR(iotahotel)OR(preferencehualing)&key=***

我使用 url 不正确吗?什么是问题?谢谢!

rankby — 指定列出结果的顺序。请注意,如果指定了 radius(在上面的必需参数下进行了描述),则不得包含 rankby

如果指定 rankby=distance(在下面的可选参数下描述),则需要 keywordnametype 中的一个或多个。