0

下面的承诺返回我所在位置附近的商店,结果包含每个商店位置的某些信息,例如标题、替代名称、id、位置、附近...和图标“标记”。

但是当我们搜索餐厅时,这些商店没有像谷歌地图这样的图像,我们看到的餐厅图像正是我需要使用这里的地图 API 的?

    return new Promise((resolve, reject) => {
        // do some async stuff
        var placesService = this.platform.getPlacesService(),
            parameters = {
                at:this.cookieService.get('User_lat')+","+this.cookieService.get('User_lng'),
                cat:'shop'
            };
        placesService.explore(parameters,
            (result) => {
                resolve(result)
            }, (_error) => {
                reject(_error)
            });
    })
4

1 回答 1

-1

API 还提供Places图标。在这里你可以看到一个例子:

https://developer.here.com/api-explorer/rest/places

在此响应部分中,提供了该图标的链接:

{
  "items": [
    {
      "id": "eat-drink",
      "title": "Essen und Trinken",
      "icon": "https://download.vcdn.cit.data.here.com/p/d/places2_stg/icons/categories/03.icon",
      "type": "urn:nlp-types:category",
      "href": "https://places.demo.api.here.com/places/v1/categories/places/eat-drink?app_id=DemoAppId01082013GAL&app_code=AJKnXv84fjrb0KIHawS0Tg",
      "system": "places",
      "within": []
    }

,

于 2019-01-30T11:15:39.990 回答