lbs

package
v0.10.17 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LngLat

type LngLat struct {
	Lng float64 // 经度
	Lat float64 // 纬度
}

type Point

type Point struct {
	LngLat
	From Ucs // 坐标系
}

func NewPoint

func NewPoint(lng, lat float64, from Ucs) *Point

func (*Point) Convert

func (p *Point) Convert() *Result

type Result

type Result struct {
	WGS84 *LngLat
	GCJ02 *LngLat
	BD09  *LngLat
}

type Ucs

type Ucs string // 坐标系
const (
	WGS84 Ucs = "wgs84" // WGS84坐标系
	GCJ02 Ucs = "gcj02" // 国测局坐标系
	BD09  Ucs = "bd09"  // 百度坐标系
)

Jump to

Keyboard shortcuts

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