Skip to content

Commit

Permalink
Removed temp location values
Browse files Browse the repository at this point in the history
Signed-off-by: Emil Balitzki <[email protected]>
  • Loading branch information
Corgam committed Jul 6, 2024
1 parent 3f678e1 commit c035d6c
Showing 1 changed file with 4 additions and 59 deletions.
63 changes: 4 additions & 59 deletions frontend/src/services/locationDataService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,65 +19,10 @@ export const fetchLocationData = async (
location: location,
};
try {
// const response = await axios.put<LocationDataResponse>(
// getAPIGatewayURL() + "/api/loadLocationData",
// requestBody
// );

const response: LocationDataResponse = {
currentDatasetData: [
{
key: "temperature",
value: "22°C",
mapId: "",
},
{
key: "humidity",
value: "45%",
mapId: "",
},
{
key: "windSpeed",
value: "15 km/h",
mapId: "",
},
],
generalData: [
{
key: "population",
value: "1,000,000",
mapId: "map004",
},
{
key: "area",
value: "500 sq km",
mapId: "",
},
{
key: "elevation",
value: "300 meters",
mapId: "",
},
],
extraRows: [
{
key: "timeZone",
value: "GMT+2",
mapId: "",
},
{
key: "language",
value: "English",
mapId: "EV_charging_stations",
},
{
key: "currency",
value: "USD",
mapId: "",
},
],
};
return response;
const response = await axios.put<LocationDataResponse>(
getAPIGatewayURL() + "/api/loadLocationData",
requestBody
);

if (response.status === 200) {
return response.data;
Expand Down

0 comments on commit c035d6c

Please sign in to comment.