我一直在关注Algoias的地方文档,我的输入是使用Algolia API引擎搜索城市,但我想从查询中获得JSON格式的响应(类似于本演示中的内容:https://community.algolia.com/places/ ),我会按照文档进行操作,但我真的很难:(。
有可能吗?
//This is my JS code, it just converts my input into a places search, I remove the AppId and the ApiKey just for show here!
var placesAutocomplete = places({
appId: 'Here goes my AppId, I remove it for show here',
apiKey: 'Here goes my ApiKey, I remove it for show here',
container: document.querySelector('#address-input')
});