algotecture / AlgoTecture

9 stars 0 forks source link

Add capability to space adding #21

Open sipakov opened 1 year ago

sipakov commented 1 year ago

Add controller and services to space adding

sipakov commented 1 year ago

Space model (main information without subspaces) to adding for example:

{ "UtilizationTypeId":1, "SpaceAddress":"Unterstaldig 1 6106 Werthenstein", "Latitude":47.04173191647986, "Longitude":8.097301555686508, "SpaceProperty":{ "Name":"", "Description":"", "SpaceDetails":{ "BuildingYear":"2023", "BuildingCategory":"Andere Wohngebäude", "BuildingClass":"Gebäude mit 1 Wohnung", "BuildingName":"", "Levels":"3", "Area":"456.4", "FloorArea":"674", "Flats":"1", "PlaceName":"Werthenstein", "MunicipalityId":"1009", "MunicipalityName":"Werthenstein" }, "SubSpaces":[ ] } }

sipakov commented 1 year ago

Space model (with subspaces) to adding for example:

{ "UtilizationTypeId":1, //main utilization type of space (1,Residential 2,Сommercial 3,Production 4,Warehouse 5,Public catering 6,Utility 7,Office space 8,Education 9,Sports 10,Free target 11,Parking 12,Boat ) "SpaceAddress":"Unterstaldig 1 6106 Werthenstein", "Latitude":47.04173191647986, "Longitude":8.097301555686508, "SpaceProperty":{ "Name":"", //free property of space name "Description":"", //free property of space name "SpaceDetails":{ "BuildingYear":"2023", "BuildingCategory":"Andere Wohngebäude", "BuildingClass":"Gebäude mit 1 Wohnung", "BuildingName":"", "Levels":"3", "Area":"456.4", "FloorArea":"674", "Flats":"1", "PlaceName":"Werthenstein", "MunicipalityId":"1009", "MunicipalityName":"Werthenstein" }, "SubSpaces":[ { "SubSpaceDetails":{ "Levels":"1", "Area":"300", "FloorArea":"477", "Flats":"1" }, "UtilizationTypeId":1, "Description":"", "Subspaces":[] }, { "SubSpaceDetails":{ "Levels":"2", "Area":"200", "FloorArea":"287", "Flats":"1" }, "UtilizationTypeId":1, "Description":"", "Subspaces":[] } ] } }

2D commented 1 year ago

The JSON file describes a space or property with various details. Here's a description of its contents: The JSON file represents a property with the following attributes:

  1. UtilizationTypeId: This field indicates the main utilization type of the space. It is represented by an integer value, where 1 corresponds to Residential, 2 to Commercial, 3 to Production, 4 to Warehouse, 5 to Public catering, 6 to Utility, 7 to Office space, 8 to Education, 9 to Sports, 10 to Free target, 11 to Parking, and 12 to Boat.
  2. SpaceAddress: This field contains the address of the space, represented as a string. In this case, the address is "Unterstaldig 1 6106 Werthenstein".
  3. Latitude and Longitude: These fields represent the geographical coordinates of the space, specifying its location on the Earth's surface.
  4. SpaceProperty: This object contains additional details about the property. • Name and Description: These fields are free-form properties and are currently empty, but they can be used to provide a name and description for the property. • SpaceDetails: This object provides information about the property's details. • BuildingYear: This field indicates the year when the building was constructed, represented as a string. In this case, the building year is "2023". • BuildingCategory: This field represents the category of the building, specified as "Andere Wohngebäude", which translates to "Other residential building". • BuildingClass: This field describes the building class, specified as "Gebäude mit 1 Wohnung", meaning "Building with 1 apartment". • BuildingName: This field is currently empty, but it can be used to provide a name for the building. • Levels: This field denotes the number of levels or floors in the building, represented as a string. In this case, there are three levels. • Area: This field represents the total area of the property, specified as "456.4". • FloorArea: This field indicates the floor area of the property, represented as "674". • Flats: This field denotes the number of flats or apartments in the property, specified as "1". • PlaceName: This field provides the name of the place where the property is located, which is "Werthenstein". • MunicipalityId: This field represents the ID of the municipality, specified as "1009". • MunicipalityName: This field indicates the name of the municipality, which is "Werthenstein". • SubSpaces: This array contains information about the subspaces or units within the property. • SubSpaceDetails: This object provides details about each subspace. • Levels: This field denotes the number of levels or floors in the subspace, represented as a string. • Area: This field represents the area of the subspace. • FloorArea: This field indicates the floor area of the subspace. • Flats: This field denotes the number of flats or apartments in the subspace. • UtilizationTypeId: This field indicates the utilization type of the subspace. • Description: This field allows for a description of the subspace, but it is currently empty. • Subspaces: This field is an empty array, suggesting that there are no further subspaces within the current subspace. This JSON file provides detailed information about a property, including its utilization type, address, geographical coordinates, property details, and information about any subspaces it may have.
sipakov commented 1 year ago

new format? for example

{ "UtilizationTypeId": 1, "SpaceAddress": "Unterstaldig 1 6106 Werthenstein", "Latitude": 47.04173191647986, "Longitude": 8.097301555686508, "SpaceProperty": { "Name": "", "Description": "", "Properties": { "BuildingName": "Name", "Area": "100" }, "SubSpaces": [ { "Properties": { "Levels": "2", "Area": "45" }, "UtilizationTypeId": 1, "Description": "", "Subspaces": [] }, { "Properties": { "Levels": "2", "Area": "44" }, "UtilizationTypeId": 1, "Description": "", "Subspaces": [] } ] } }

sipakov commented 1 year ago

Done. May