Skip to content

[types] AddressComponent #77

@lqzhgood

Description

@lqzhgood

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions