本地合并备份
This commit is contained in:
1 parent
2b275d6dc5
commit
4353a38c96
44 files changed
+5568
-4294
No files matched your search
@@ -72,11 +72,11 @@ namespace Assets.Scripts.Apis.Models
|
||||
|
||||
private void CalcDistance()
|
||||
{
|
||||
_List[0].Distance = 0;
|
||||
//_List[0].Distance = 0;
|
||||
for (int i = 1; i < _List.Count - 1; i++)
|
||||
{
|
||||
var pt1 = Turf.Point(new double[] { _List[i-1].Point[1], _List[i-1].Point[0] });
|
||||
var pt2 = Turf.Point(new double[] { _List[i].Point[1], _List[i].Point[0] });
|
||||
var pt1 = Turf.Point(new double[] { _List[i].Point[1], _List[i].Point[0] });
|
||||
var pt2 = Turf.Point(new double[] { _List[i+1].Point[1], _List[i+1].Point[0] });
|
||||
var value = Turf.Distance(pt1, pt2, "kilometers") ;
|
||||
_List[i].Distance = Math.Round(value*1000, 2);
|
||||
}
|
||||
|
||||
@@ -7,7 +7,7 @@ using UnityEngine;
|
||||
|
||||
public static class App
|
||||
{
|
||||
public static string Host = "http://192.168.0.101:5082/";
|
||||
public static string Host = "http://192.168.0.97:5082/";
|
||||
|
||||
public static string AppVersion = "1.0.0";
|
||||
|
||||
|
||||
Reference in new issue
Block a user