【问题标题】:Show only particular fun spots from Google Places API仅显示来自 Google Places API 的特定有趣地点
【发布时间】:2022-01-25 16:10:47
【问题描述】:

我在我的 react native 项目中使用这个 Google Places API - https://github.com/FaridSafi/react-native-google-places-autocomplete

我的代码:

import { GooglePlacesAutocomplete } from 'react-native-google-places-autocomplete'
<GooglePlacesAutocomplete placeholder='Search'
            query={{key:'',components: 'country:us'}}
            onPress={(data, details) => {
                //console.log(data.description)
            }}
/>

有人知道如何将结果限制为“纽约的餐厅”吗?

谢谢

【问题讨论】:

标签: reactjs react-native google-maps google-places-api


【解决方案1】:

您可以获得的最接近自动完成功能的是establishment。查看table 3 中的类型。

请为此issue +1/star。

【讨论】:

    猜你喜欢
    • 2015-07-22
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-06-30
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多