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

upate: README

parent d4453186
No related branches found
No related tags found
1 merge request!7Clhp map
......@@ -13,6 +13,28 @@ Precompiled binaries can be found on https://www.sqlite.org/download.html. Extra
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 maps
The current server only contains the data for a single lake, Mjøsa. To add more lakes
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,
press the 'Run' button.
```
[out:json];
(
way["natural"="water"]["name"="lakeName"];
relation["natural"="water"]["name"="lakeName"];
);
(._;>;);
out body;
```
If a text box saying "This query returned quite a lot of data (approx. x MB). Your browser may have a hard time trying to render this. Do you really want to continue?
" appears, press 'continue anyway'. Double check that you have
the correct lake, then press 'Export'. In the 'Export' menu, download the shape data as
GeoJson. Once downloaded, name the file the *lakeName.json, and move the file into
IceMap/server/lake_relations. Once you have added the file, run map division...
## Endpoints
## Bugs
......
The following query is used to retrieve the relation(shape) of a lake.
Go to https://overpass-turbo.eu/#, enter the query in the left field, add
the name of the lake you want to add, and press 'run'.
If a text box saying "" appears, press 'continue anyways'. Double check that you have
the correct lake, then press 'Export'. In the 'Export' menu, download the shape data as
GeoJson. Once downloaded, name the file the *lakeName.json, and move the file into
IceMap/server/lake_relations. Once you have added the file, run map division...
[out:json];
(
way["natural"="water"]["name"="lakeName"];
......
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