nativeScript-googleplaces-autocomplete-temp
一个插件,使用原生 API 从 Google Places 获取自动完成查询。
npm i --save nativescript-googleplaces-autocomplete-temp

为 https://github.com/derTuca/nativescript-googleplaces-autocomplete 创建的临时 NPM 包

由于 git 包未发布,因此创建了一个临时包,直到官方版本恢复。

我在原始版本中修复了一些错误,并移除了对 nativescript-geolocation 的依赖。我还为 iOS 原生 Places SDK 实现添加了地理位置偏差支持。

现在 get() 的签名是

get(query: string, filterType: FilterTypes, lat: number, lon: number)