baidumap

package
v0.0.0-...-62252a8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 14, 2021 License: MulanPSL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ReverseGeoCodingParam

type ReverseGeoCodingParam struct {
	Lat       float64
	Lng       float64
	Ak        string
	CoordType string // 坐标的类型,目前支持的坐标类型包括:bd09ll(百度经纬度坐标)、bd09mc(百度米制坐标)、gcj02ll(国测局经纬度坐标,仅限中国)、wgs84ll( GPS经纬度)
}

lat<纬度>,lng<经度>

type ReverseGeoCodingResult

type ReverseGeoCodingResult struct {
	Status int8 `json:"status"`
	Result struct {
		Location struct {
			Lat float64 `json:"lat"`
			Lng float64 `json:"lng"`
		}
		FormattedAddress string `json:"formatted_address"`
		Business         string `json:"business"`
		AddressComponent struct {
			Country      string `json:"country"`
			Province     string `json:"province"`
			City         string `json:"city"`
			District     string `json:"district"` //区县名
			Town         string `json:"town"`
			Street       string `json:"street"`        //街道名(行政区划中的街道层级)
			StreetNumber string `json:"street_number"` //街道门牌号
		}
	}
}

http://lbsyun.baidu.com/index.php?title=webapi/guide/webservice-geocoding-abroad

func GetReverseGeoCoding

func GetReverseGeoCoding(param ReverseGeoCodingParam) (result *ReverseGeoCodingResult, err error)

逆地址解析

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL