mirror of
https://github.com/supanadit/geo-smart-system.git
synced 2024-11-10 10:02:21 +00:00
15 lines
322 B
Go
15 lines
322 B
Go
|
package model
|
||
|
|
||
|
type Tile38SubObject struct {
|
||
|
Type string `json:"type"`
|
||
|
Coordinates []float64 `json:"coordinates"`
|
||
|
}
|
||
|
|
||
|
func (tile38SubObject Tile38SubObject) Lng() float64 {
|
||
|
return tile38SubObject.Coordinates[0]
|
||
|
}
|
||
|
|
||
|
func (tile38SubObject Tile38SubObject) Lat() float64 {
|
||
|
return tile38SubObject.Coordinates[1]
|
||
|
}
|