diff --git a/src/main/java/no/nibio/vips/logic/service/POIService.java b/src/main/java/no/nibio/vips/logic/service/POIService.java
index 8f75290e2ae43490f406dbf1b7c24b1cc51d5a41..78c92f2dc18c3611675142da6a00d7049ab92a43 100644
--- a/src/main/java/no/nibio/vips/logic/service/POIService.java
+++ b/src/main/java/no/nibio/vips/logic/service/POIService.java
@@ -117,14 +117,14 @@ public class POIService {
         LOGGER.error("Remember to check for roles as well, if necessary!");
 
         PointOfInterestBean poiBean = SessionControllerGetter.getPointOfInterestBean();
-        Integer poiTypeId = poiMap.get("typeId") != null ? Integer.parseInt(poiMap.get("typeId").toString()) : null;
+        Integer poiTypeId = poiMap.get("pointOfInterestTypeId") != null ? Integer.parseInt(poiMap.get("pointOfInterestTypeId").toString()) : null;
         if(poiTypeId == null) {
-            return Response.status(Status.BAD_REQUEST).entity("Point of interest type is required").build();
+            return Response.status(Status.BAD_REQUEST).entity("pointOfInterestTypeId is required").build();
         }
         String poiName = poiMap.get("name") != null ? poiMap.get("name").toString() : null;
         Double poiLongitude = poiMap.get("longitude") != null ? Double.valueOf(poiMap.get("longitude").toString()): null;
         Double poiLatitude = poiMap.get("latitude") != null ? Double.valueOf(poiMap.get("latitude").toString()): null;
-        Double poiAltitude = poiMap.get("altitude") != null ? Double.valueOf(poiMap.get("altitude").toString()): null;
+        Double poiAltitude = 0.0;
 
         PointOfInterest poiToSave = PointOfInterestFactory.getPointOfInterest(poiTypeId);
         poiToSave.setName(poiName);
@@ -149,7 +149,7 @@ public class POIService {
                     .build();
         } else {
             return Response.status(Response.Status.INTERNAL_SERVER_ERROR)
-                    .entity("Failed to create PointOfInterest")
+                    .entity("Failed to create PointOfInterest " + poiName)
                     .build();
         }
     }
diff --git a/src/main/webapp/js/mapModal.js b/src/main/webapp/js/mapModal.js
index 526c27bc438dd6e0cc2a1b056708f84e607be24c..1683c2f5427f56c63b6e9a5959879cce9ae48956 100644
--- a/src/main/webapp/js/mapModal.js
+++ b/src/main/webapp/js/mapModal.js
@@ -306,9 +306,9 @@ class MapModal {
     confirmSelection(feature) {
         if (typeof this.callbackOnClose === 'function') {
             const pointData = {
-                id: feature.properties.pointOfInterestId,
+                pointOfInterestId: feature.properties.pointOfInterestId,
                 name: feature.properties.pointOfInterestName,
-                typeId: feature.properties.pointOfInterestTypeId,
+                pointOfInterestTypeId: feature.properties.pointOfInterestTypeId,
                 longitude: feature.geometry.coordinates[0],
                 latitude: feature.geometry.coordinates[1]
             };
diff --git a/src/main/webapp/templates/forecastConfigurationForm.ftl b/src/main/webapp/templates/forecastConfigurationForm.ftl
index 1d164406348af3102852d65559cd6b0dbc93d8c4..95af236f180757e873a0b4f08eea54a84d62a75b 100755
--- a/src/main/webapp/templates/forecastConfigurationForm.ftl
+++ b/src/main/webapp/templates/forecastConfigurationForm.ftl
@@ -108,21 +108,14 @@
         }
 
         function callbackOnCloseLocationMap(poiData) {
-            if(!poiData.id) {
+            if(!poiData.pointOfInterestId) {
                 persistNewLocation(poiData);
             } else {
-                selectPoi("locationPointOfInterestId", poiData.id);
+                selectPoi("locationPointOfInterestId", poiData.pointOfInterestId);
             }
         }
 
         function persistNewLocation(poiData) {
-            const params = {
-                'name': poiData.name,
-                'typeId': poiData.typeId,
-                'longitude': poiData.longitude,
-                'latitude': poiData.latitude,
-                'altitude': '0', // default value - populate using a service for getting altitude for coordinates?
-            }
             fetch("/rest/poi", {
                 method: 'POST',
                 headers: {
@@ -130,7 +123,7 @@
                     'Accept': 'application/json',
                     'Authorization': '${user.userUuid!'NOT LOGGED IN?'}'
                 },
-                body: JSON.stringify(params)
+                body: JSON.stringify(poiData)
             })
                 .then(response => response.json())
                 .then(poi => {