Skip to content

Commit c2ef19c

Browse files
committed
added readme
1 parent 13611c5 commit c2ef19c

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

README.md

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# FaPra OSM 2022
2+
Repository for 'Fachpraktikum Algorithms on OpenStreetMap data' at University Stuttgart by Albi Mema and Matthias Weilinger
3+
4+
# Instructions
5+
### Install Golang
6+
At first, you have to install golang on your System.<br>
7+
Version 1.18 is recommend.<br>
8+
For ubuntu you can follow [this](https://cmatskas.com/install-go-on-wsl-ubuntu-from-the-command-line/) blog post.
9+
### Generate FMI file from PBF file
10+
1. Navigate into the project folder, so that you are in the directory OSM.
11+
2. Build the project with command: go build ./src/main.go
12+
3. Run project with command: ./main {pathToPbfFile}
13+
4. You can find the resulting fmi file in the same direcory as your pbf file.
14+
15+
### Run Webserver
16+
1. Navigate into the project folder, so that you are in the directory OSM.
17+
2. Build the project with command: go build ./src/mainWeb.go
18+
3. Ron project with command: ./mainWeb {pathToFmiFile} {port}
19+
4. The GUI can be found at localhost/{port}
20+
21+
### How to use GUI
22+
- In your browser navigate to localhost/{port}
23+
- To set a starting point just click anywhere on the map
24+
- To create a ending point click anywhere on the map
25+
- Both points will snap to the closest point in water that was created in Task 3
26+
- Immediately after setting a ending point a shortest path will be drawn on the map
27+
- When clicking on the marker or on the line more information will be displayed
28+
- To plan a new route just click anywhere on the map and a new starting point will be set

0 commit comments

Comments
 (0)