2013-05-06 18:54:19 +04:00
|
|
|
package binary
|
2013-01-19 16:50:44 +04:00
|
|
|
|
2013-07-04 18:03:26 +04:00
|
|
|
func (this *Node) wgsCoord() (lon float64, lat float64) {
|
2013-05-06 18:54:19 +04:00
|
|
|
lon = IntToCoord(this.GetLong())
|
|
|
|
lat = IntToCoord(this.GetLat())
|
2013-01-19 16:50:44 +04:00
|
|
|
return
|
|
|
|
}
|
|
|
|
|
2013-07-04 18:03:26 +04:00
|
|
|
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
|
2013-01-19 16:50:44 +04:00
|
|
|
}
|