Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[types] AddressComponent #77

Open
lqzhgood opened this issue Sep 4, 2023 · 0 comments
Open

[types] AddressComponent #77

lqzhgood opened this issue Sep 4, 2023 · 0 comments

Comments

@lqzhgood
Copy link
Contributor

lqzhgood commented Sep 4, 2023

GeolocationResult 返回的数据中

{
    "accuracy": 209,
    "altitude": null,
    "altitudeAccuracy": null,
    "heading": null,
    "latitude": 27.1234,
    "longitude": 113.1234,
    "speed": null,
    "timestamp": null,
    "point": {
        "lng": 113.1234,
        "lat": 27.1234
    },
    "address": {
        "country": "",
        "city": "xx市",
        "city_code": 0,
        "district": "xx区",
        "province": "xx省",
        "street": "xx路",
        "street_number": ""
    }
}

实际返回的 address :AddressComponent 中 key 名是 street_number
但是文档 https://mapopen-pub-jsapi.bj.bcebos.com/jsapi/reference/jsapi_webgl_1_0.html#a8b35 中是 streetNumber

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant