Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/captv89/searoute
Find the shortest sea route between any two positions. This is insprited by the searoute project by eurostat.
https://github.com/captv89/searoute
djikstra-algorithm geojson gin-gonic golang graph-algorithms leafletjs
Last synced: 4 days ago
JSON representation
Find the shortest sea route between any two positions. This is insprited by the searoute project by eurostat.
- Host: GitHub
- URL: https://github.com/captv89/searoute
- Owner: captv89
- License: mit
- Created: 2022-12-27T20:33:06.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2023-04-06T23:24:19.000Z (over 1 year ago)
- Last Synced: 2023-07-12T22:24:01.563Z (over 1 year ago)
- Topics: djikstra-algorithm, geojson, gin-gonic, golang, graph-algorithms, leafletjs
- Language: JavaScript
- Homepage: https://searoute.captv.ovh/
- Size: 443 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Short Sea Route Finder
This web application allows users to find waypoints along a sea route between an origin and a destination. The waypoints and the route are displayed on a map together with the total distance.
## Screenshot
![](https://i.ibb.co/7K9jW90/Screenshot-2023-01-01-at-00-07-23.png)## Prerequisites
- [Go](https://go.dev/)
- [Gin](https://gin-gonic.com/)
- [Leaflet](https://leafletjs.com/)
- [Materialize](https://materializecss.com/)## Installation
Clone the repository:
```bash
git clone https://github.com/captv89/seaRoute.git
```Navigate to the project directory:
```bash
cd seaRoute
```Install the dependencies:
```go
go get github.com/gin-gonic/gin github.com/pitchinnate/golangGeojsonDijkstra github.com/kellydunn/golang-geo
```Start the server:
```go
go run main.go
```Open your browser and navigate to http://localhost:8080 to use the application.
## Usage
- Enter the latitude and longitude of the origin and destination in the form.
- Click the "Calculate" button to retrieve the waypoints and the route.
- The waypoints, route details and the total distance will be displayed in the map on clicking the waypoint and route respectively.## References
Marnet Dataset from the [searoute](https://github.com/eurostat/searoute) project by eurostat.## Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.## License
This project is licensed under the MIT License - see the LICENSE file for details.