我已经尝试过这段代码,找不到 Go 的 geo/s2 的任何示例
package main
import (
"fmt"
"github.com/golang/geo/s2"
)
func main(){
rect := s2.RectFromLatLng(s2.LatLngFromDegrees(12.9279,77.6271))
rect = rect.AddPoint(s2.LatLngFromDegrees(12.9081,77.6476))
isThere := rect.ContainsLatLng(s2.LatLngFromDegrees(12.9177,77.6233))
fmt.Printf("%+v", rect.Hi())
fmt.Printf("%+v", rect.Lo())
println(isThere)
}