imposm3/cache/binary/nodes.go

15 lines
310 B
Go
Raw Normal View History

2013-05-06 18:54:19 +04:00
package binary
func (this *Node) wgsCoord() (lon float64, lat float64) {
2013-05-06 18:54:19 +04:00
lon = IntToCoord(this.GetLong())
lat = IntToCoord(this.GetLat())
return
}
func (this *Node) fromWgsCoord(lon float64, lat float64) {
2013-05-06 18:54:19 +04:00
longInt := CoordToInt(lon)
latInt := CoordToInt(lat)
2013-01-28 10:55:34 +04:00
this.Long = &longInt
this.Lat = &latInt
}