|
|
@@ -61,6 +61,17 @@ public class MapService {
|
|
|
}).collect(Collectors.toList());
|
|
|
}
|
|
|
|
|
|
+ public void addTrail(List<MapPoint> list) {
|
|
|
+ List<GeoPoint> geoPointList = list.stream()
|
|
|
+ .map(GeoPoint::new)
|
|
|
+ .collect(Collectors.toList());
|
|
|
+ if (!geoPointList.isEmpty()) {
|
|
|
+ long loginUser = UserContext.getUser();
|
|
|
+ geoPointMapper.deleteByPositionType(loginUser, 2);
|
|
|
+ geoPointMapper.saveAll(geoPointList);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
public List getTrailPath() {
|
|
|
List<GeoPoint> list = getMyGeoPoints();
|
|
|
List<List<Double>> list1 = list.stream().map(geoPoint -> {
|