【问题标题】:In Here Map - How to search a list of addressIn Here Map - 如何搜索地址列表
【发布时间】:2021-12-23 12:06:47
【问题描述】:

例如,我知道如何获取一个地址的位置

function geocode(platform) {
            var geocoder = platform.getSearchService(),
                geocodingParameters = {
                    q:'Place  Armes, 78000 Versailles, Francia'                                                         
                };
            geocoder.geocode(
                geocodingParameters,
                onSuccess,
                onError
            );
        }

但是如果我有一个地址列表,¿我需要用不同的 q 参数调用 n 次相同的函数吗?还是有任何方法可以在一次通话中发送地址列表?

【问题讨论】:

    标签: dictionary location maps geocoding here-api


    【解决方案1】:

    您可以使用 Batch Geocoder API 发送地址列表。 地址列表进入 POST 请求的正文。有关请求构造的详细信息,请参阅Batch Geocoder API Guide

    使用常规的 Geocoder API,您确实需要发送与地址一样多的请求。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2023-03-21
      • 2012-01-10
      • 2021-11-21
      • 2013-06-14
      • 2019-02-02
      • 2011-05-11
      • 1970-01-01
      • 2021-12-31
      相关资源
      最近更新 更多