# dcb.openLocation

打开位置。只接受百度坐标系(bd09)的经纬度,其他坐标系的经纬度可使用该包转换为百度坐标系:gcoord (opens new window)

# 参数

属性 类型 默认值 必填 说明 最低版本
name

string

位置名称

address

string

地址的详细说明

longitude

number | string

经度

latitude

number | string

纬度

# 示例

await dcb.openLocation({
  longitude: 26.61859,
  latitude: 106.64359,
  name: '天一国际',
  address: '中国贵州省贵阳市乌当区长岭南路辅路国家数字内容产业园附近',
});

# 贡献者

上次更新时间: 6/13/2025, 11:28:15 AM