如何使用HERE API从纬度和经度中获取北南东和西值?

问题描述 投票:0回答:1

使用此HERE API:https://geocoder.api.here.com/6.2/geocode.json?searchtext=200%20S%20Lodhi%20Colony%20CA&app_id = ***&app_code = ####我能够获得有关Lodhi Colony的所有信息。类似地,我想将输入传递为lat和long,并希望它是北南和东西值。

示例:

输入:

Lat = 41.02633002010979长= -111.94550019690477

输出:“ mapView”:{“西”:2.33073,“南”:48.86836,“东部”:2.33347,“北方”:48.87016}

我尝试使用此处提供的信息(https://developer.here.com/c/geocoding),但无法使用。

**编辑:**我想要给定纬度和经度的边界框。

here-api
1个回答
0
投票

请参考以下示例,以将地理编码API用于特定的边界框。使用mapview参数,您可以适当地分配x,y,从而可以在地图上形成一个框。

https://developer.here.com/documentation/examples/rest/geocoder/latitude-longitude-by-mapview-parameter

© www.soinside.com 2019 - 2024. All rights reserved.