Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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 !

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.