diff --git a/frontend/public/marker-icon.png b/frontend/public/marker-icon.png new file mode 100644 index 0000000..950edf2 Binary files /dev/null and b/frontend/public/marker-icon.png differ diff --git a/frontend/public/marker-shadow.png b/frontend/public/marker-shadow.png new file mode 100644 index 0000000..9fd2979 Binary files /dev/null and b/frontend/public/marker-shadow.png differ diff --git a/frontend/src/pages/Predict.jsx b/frontend/src/pages/Predict.jsx index 351a508..7ad9473 100644 --- a/frontend/src/pages/Predict.jsx +++ b/frontend/src/pages/Predict.jsx @@ -62,8 +62,8 @@ const Predict = () => { if (!Object.values(state).some((value) => value === "")) { // Convert state to correct format for the API const listing = {}; - listing.latitude = parseFloat(state.latitude); - listing.longitude = parseFloat(state.longitude); + listing.lat = parseFloat(state.latitude); + listing.long = parseFloat(state.longitude); listing.askingPrice = parseInt(state.askingPrice); listing.fee = parseInt(state.fee); listing.livingArea = parseInt(state.livingArea); @@ -77,13 +77,6 @@ const Predict = () => { listing.hasBalcony = state.hasBalcony; listing.soldAt = new Date().toISOString().slice(0, 10); - // TODO: add coords in form, maybe pick from map? Or fetch from Hemnet API - listing.lat = 50; - listing.long = 50; - - // Currently don't use asking price, maybe we will do it in the future - // listing.askingPrice = parseInt(state.askingPrice); - predict(listing) .then((data) => { setPredictedPrice(data.prediction); @@ -113,8 +106,16 @@ const Predict = () => { ]; return ( - - + + @@ -317,7 +318,15 @@ const Predict = () => { - +