Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/eze-kiel/vacation-finder
Don't know where to go on vacation ? Let the computer decide for you !
https://github.com/eze-kiel/vacation-finder
Last synced: 4 days ago
JSON representation
Don't know where to go on vacation ? Let the computer decide for you !
- Host: GitHub
- URL: https://github.com/eze-kiel/vacation-finder
- Owner: eze-kiel
- Created: 2020-02-12T15:58:23.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-02-13T22:06:52.000Z (over 4 years ago)
- Last Synced: 2023-03-04T17:45:03.435Z (over 1 year ago)
- Language: Go
- Size: 18.6 KB
- Stars: 0
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Vacation Finder
![Licence](https://img.shields.io/badge/License-GPL-brightgreen)Don't know where to go on vacations ? Let the computer decide for you !
## Synopsis
`./main [OPTION]...`
## Description
Sort a random latitude and longitude in function of a given start point and a maximal distance.
`-place PLACE` define your starting point on a known¹ place (see below). Only accept _strings_.
`-dist DISTANCE` define the maximal vertical and horizontal distance you want. This information create a square around your starting point in which a random pair of coordinates will be chosen. Only accept _integers_.
`-n NUMBER` set the number of random points you want to have. Only accept _integers_.
`-coord LAT,LONG` allow the user to give a pair of coordinates to replace a city name. Only accept _strings_ with **NO** space between latitude and longitude.
¹ Known places are written in [locations.yaml](locations.yml).
## Existing places
- Lyon, FR (45.7597, 4.8342), usage : `lyon`
- Paris, FR (48.8617, 2.3429), usage : `paris`
- New York City, USA (40.6700, -73.9400), usage : `nyc`
- Longyearbyen, NOR (78.2234, 15.6447), usage : `longyb`
- Roma, ITA (41.9043, 12.4942), usage : `roma`
- London, UK (51.5073, -0.1275), usage : `london`
- Reykjavik, ISL (64.1431, -21.9164), usage : `reykjk`
- Washington D.C, USA (38.9002, -77.0365), usage : `washdc`## Author
Written by ezekiel.
## Copyright
License GPLv3+: GNU GPL version 3 or later . This is free software: you are free to change and redistribute it.