baidu

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2021 License: MIT Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Geocoder

func Geocoder(apiKey string, language string, coordtype string, baseURLs ...string) geo.Geocoder

Geocoder constructs Baidu geocoder

language: Baidu Map's API uses Chinese (zh-CN) by default. but it supports language argument to specify which language it will use. If some fields don't have the target language version, it will be filled with Chinese version by default. Acceptable languages arguments are : "el", "gu", "en", "vi", "ca", "it", "iw", "sv", "eu", "ar", "cs", "gl", "id", "es", "en-GB", "ru", "sr", "nl", "pt", "tr", "tl", "lv", "en-AU", "lt", "th", "ro", "fil", "ta", "fr", "bg", "hr", "bn", "de", "hu", "fa", "hi", "pt-BR", "fi", "da", "ja", "te", "pt-PT", "ml", "ko", "kn", "sk", "zh-CN", "pl", "uk", "sl", "mr", "local"

"local" is a special argument for language specifying, which means the language it uses depends on your location.

coordtype: According to league reasons, Chinese geo service providers uses encrypted coordinate system (GCJ02ll, BD09ll, BD09mc, etc.) other than the World Geodetic System (WGS, especially WGS84ll). Acceptable coordtype arguments are : "bd09ll", "bd09mc", "gcj02ll", "wgs84ll" default: "bd09ll" You can use https://api.map.baidu.com/geoconv/v1/?coords=LONGITUDE,LATITUDE&from=1&to=5&ak=AK to convert from WGS84ll to BD09ll coordination. API document: https://lbsyun.baidu.com/index.php?title=webapi/guide/changeposition

Types

This section is empty.

Jump to

Keyboard shortcuts

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