subway

package
v0.0.0-...-0158116 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BD2TX

func BD2TX(lng float64, lat float64) (toLng float64, toLat float64)

百度地图BD09坐标转腾讯地图(高德)GCJ02坐标

func NewCommand

func NewCommand() *cobra.Command

func TX2BD

func TX2BD(lng float64, lat float64) (toLng float64, toLat float64)

GCJ02腾讯(高德)地图坐标转BD09百度坐标

Types

type CityListEntity

type CityListEntity struct {
	Spell    string `json:"spell"`
	ADCode   string `json:"adcode"`
	CityName string `json:"cityname"`
}

type CityListResponse

type CityListResponse struct {
	CityList []*CityListEntity `json:"citylist"`
}

type SubwayLine

type SubwayLine struct {
	Name     string          `json:"ln"`
	FullName string          `json:"kn"`
	Su       string          `json:"su"`
	Station  []SubwayStation `json:"st"`
}

type SubwayResponse

type SubwayResponse struct {
	Name   string       `json:"s"`
	ADCode string       `json:"i"`
	List   []SubwayLine `json:"l"`
	O      string       `json:"o"`
}

type SubwayStation

type SubwayStation struct {
	Name     string `json:"n"`
	Location string `json:"sl"`

	BDLng float64 `json:"bd_lng"`
	BDLat float64 `json:"bd_lat"`
}

Jump to

Keyboard shortcuts

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