如何从Algolia地点搜索中获取JSON?

时间:2019-01-24 13:32:06

标签: javascript html json api algolia

我一直在关注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')
  });

0 个答案:

没有答案