imposm3/cache/binary/nodes.go

15 lines
310 B
Go

package binary
func (this *Node) wgsCoord() (lon float64, lat float64) {
lon = IntToCoord(this.GetLong())
lat = IntToCoord(this.GetLat())
return
}
func (this *Node) fromWgsCoord(lon float64, lat float64) {
longInt := CoordToInt(lon)
latInt := CoordToInt(lat)
this.Long = &longInt
this.Lat = &latInt
}