Skip to content
Snippets Groups Projects
Commit d78fa026 authored by Lene Wasskog's avatar Lene Wasskog
Browse files

feat: Set timeZone, isForecastLocation and isPrivate for new POI

parent cfd3a8ff
No related branches found
No related tags found
1 merge request!191Add map module and Open-Meteo support
......@@ -134,8 +134,11 @@ public class POIService {
poiToSave.setLastEditedTime(new Date());
poiToSave.setUser(user);
poiToSave.setCountryCode(user.getOrganizationId().getCountryCode());
poiToSave.setTimeZone(user.getOrganizationId().getDefaultTimeZone());
poiToSave.setIsForecastLocation(Boolean.FALSE);
poiToSave.setIsPrivate(Boolean.TRUE);
if (poiLongitude != null && poiLatitude != null && poiAltitude != null) {
if (poiLongitude != null && poiLatitude != null) {
GISUtil gisUtil = new GISUtil();
Coordinate coordinate = new Coordinate(poiLongitude, poiLatitude, poiAltitude);
Point p3d = gisUtil.createPointWGS84(coordinate);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment