Azure Maps 坐标反向地理编码问题

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

我开始使用 Azure Maps 反向地理编码 REST API 端点,对于来自我所在地区(波兰)的坐标请求,其返回来自沙特阿拉伯的结果

我的要求:

纬度 - 51.762036 长 - 19.532306

卷曲

curl --location 'https://atlas.microsoft.com/reverseGeocode?subscription-key={mySubscriptionKey}&
api-version=2023-06-01&
coordinates=51.762036%2C%2019.532306'

http

GET /reverseGeocode?
subscription-key={mySubscriptionKey}&
api-version=2023-06-01&
coordinates=51.762036, 19.532306 HTTP/1.1
Host: atlas.microsoft.com

这是我的结果

{
    "type": "FeatureCollection",
    "features": [
        {
            "type": "Feature",
            "geometry": {
                "type": "Point",
                "coordinates": [
                    51.76203536987305,
                    19.532306671142578
                ]
            },
            "properties": {
                "geocodePoints": [
                    {
                        "geometry": {
                            "type": "Point",
                            "coordinates": [
                                51.76203536987305,
                                19.532306671142578
                            ]
                        },
                        "calculationMethod": "Rooftop",
                        "usageTypes": [
                            "Display"
                        ]
                    }
                ],
                "address": {
                    "adminDistricts": [
                        {
                            "shortName": "Eastern"
                        }
                    ],
                    "countryRegion": {
                        "name": "Saudi Arabia",
                        "iso": "SA"
                    },
                    "formattedAddress": "Eastern"
                },
                "confidence": "Medium",
                "matchCodes": [
                    "Good",
                    "UpHierarchy"
                ],
                "type": "AdminDivision1"
            },
            "bbox": [
                51.7210569322467,
                19.50333628815002,
                51.8030138074994,
                19.561277054135136
            ]
        }
    ]
}

对于样本上显示的某些坐标,它工作正常,我的请求是否有问题?

azure reverse-geocoding azure-maps
1个回答
0
投票

Azure 地图符合“经度、纬度”的地理空间标准(类似于 x、y),反转坐标中的数字,您应该会看到世界正确位置的结果。

注意,响应采用 GeoJSON 格式,这是一种开放的地理空间标准格式。其规范要求“经度、纬度”格式。

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