我如何获得 MapQuest API 的边界框?
How do I get the boundingBox for the MapQuest API?
交通事件需要 boundingBox 参数 (https://developer.mapquest.com/documentation/traffic-api/incidents/get/) and it docs use a location that is geocoded, I would assume to get the boundingBox info but the geocodding api doesn't return anything for it (https://developer.mapquest.com/documentation/geocoding-api/address/get/)。如何获得 and/or 计算边界框?好像跟lat/lang有关,但不明显。
可以通过 adding/subtracting 返回的 lat/lng 周围的慷慨值围绕地理编码结果构建默认边界框。但通常边界框是用户查看地图并抓住该地图的边界的结果。
交通事件需要 boundingBox 参数 (https://developer.mapquest.com/documentation/traffic-api/incidents/get/) and it docs use a location that is geocoded, I would assume to get the boundingBox info but the geocodding api doesn't return anything for it (https://developer.mapquest.com/documentation/geocoding-api/address/get/)。如何获得 and/or 计算边界框?好像跟lat/lang有关,但不明显。
可以通过 adding/subtracting 返回的 lat/lng 周围的慷慨值围绕地理编码结果构建默认边界框。但通常边界框是用户查看地图并抓住该地图的边界的结果。