Skip to content
Snippets Groups Projects
Commit 2f629cec authored by Sara Savanovic Djordjevic's avatar Sara Savanovic Djordjevic
Browse files

update: reamde

parent cd8d0dea
No related branches found
No related tags found
1 merge request!17Clhp map
# PROG2900
## Dependencies
## Endpoints
```
\
\update_map
\get_relation
\add_new_lake?lake=name
\update_map?lake=*
\get_relation?lake=*
\add_new_lake?lake=*
\add_test_data?lake=*
```
### Server
## Server
To run the server...
### Application
### Database
This project requires SQLite3. Download the precompiled binary for your operating system.
Precompiled binaries can be found on https://www.sqlite.org/download.html. Extract the downloaded
binary in a folder and note its path. Add the path to your system environment variables. Now you can
manage the SQLite database.
## Adding new lakes
To add a new lake to the system, go to https://overpass-turbo.eu/.
### Adding lakes to the system
To add a new lake to the system, go to https://overpass-turbo.eu/.
Once you have navigated to Overpass API, enter
the Overpass query below in the left field, but swap 'lakeName' out
with the name of the lake you want to add. Once the query has been adjusted,
......@@ -51,12 +42,29 @@ IceMap/server/lake_relations. Once you have added the file, run map division...
![img.png](images/geojson-file.png)
The result will be two new files named lakeName_centers.txt and lakeName_div.json. The original
lakeName.geojson file should also remain in the system. Additionally, the file named all_lake_names.json
lakeName.geojson file should also remain in the system. Additionally, the file named all_lake_names.json
should be updated to contain the newly added lake name.
![img.png](images/resulting-files.png)
### Dependencies
## Database
This project requires SQLite3. Download the precompiled binary for your operating system.
Precompiled binaries can be found on https://www.sqlite.org/download.html. Extract the downloaded
binary in a folder and note its path. Add the path to your system environment variables. Now you can
manage the SQLite database.
## Application
In order to run the application on a physical device, the port randomization of Dart must
first be bypassed. To do this, run the adb command ```reverse tcp:8443 tcp:8443 ```. This must be
repeated every time the IDE in which the application is running is restarted. A simpler alternative
is to add the command to the run configuration as an external tool.
### Dependencies
## Known bugs
## Developers
This software was developed by Joakim Aleksandersen, Sara Savanovic Djordjevic,
and Hoa Ben The Nguyen.
\ No newline at end of file
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment