Files
jx-callback/business/partner/delivery/tiktok_store/store_test.go
richboo111 62fa2a3ee1 1
2022-10-28 16:57:12 +08:00

20 lines
731 B
Go

package tiktok_store
import (
"git.rosy.net.cn/baseapi/utils"
"github.com/golang/tools/go/ssa/interp/testdata/src/fmt"
"strings"
"testing"
)
func TestStoreUpdateFence(t *testing.T) {
tempStr := strings.Split("104.111331,30.67964544419017;104.13348225189759,30.671752134736078;104.14265760085712,30.652696;104.13348225189759,30.63363986526392;104.111331,30.625746555809826;104.08917974810242,30.63363986526392;104.0800043991429,30.652696;104.08917974810242,30.671752134736078", ";")
fmt.Println("%d", len(tempStr))
for v := len(tempStr) - 1; v >= 0; v-- {
s2 := strings.Split(tempStr[v], ",")
Longitude := utils.Str2Float64(s2[0])
Latitude := utils.Str2Float64(s2[1])
fmt.Sprintf("%s,%s", Longitude, Latitude)
}
}