imposm3/cache/binary/nodes.go

13 lines
258 B
Go

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