如何从HERE REST API获取道路数据

时间:2018-01-09 14:21:08

标签: rest here-api

我需要从HERE.com提取道路地理坐标(纬度,经度)和其他数据,例如行号。我查看了Map Tile API - 它只返回街道标签。除了以像素为单位的坐标。

请求示例:https://2.base.maps.cit.api.here.com/maptile/2.1/streettile/newest/normal.day/16/39616/20487/256/png8?app_id= {APP_ID}& app_code = {APP_CODE}& metadata = metaonly& pois& mgen = 2

回应:

    {
        "metadata": {
            "street labels": [
                {
                    "name": "ulitsa Il'inka",
                    "font size": "13",
                    "vertices": [
                        252.12,
                        105.13,
                        273.23,
                        89.7,
                        283.94,
                        81.86,
                        292.44,
                        74.9,
                        295.3,
                        72.48,
                        301.29,
                        67.55,
                        311.49,
                        60
                    ]
                },
            ....
            "labels": [],
            "city center labels": [],
            "buildings": [],
            "transit stops": [],
            "POIs": []
        }
    }

有没有办法从HERE.com获取地理坐标和其他数据?

1 个答案:

答案 0 :(得分:0)