Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/artamonovkirill/vacations
Find best place to stay
https://github.com/artamonovkirill/vacations
Last synced: about 2 months ago
JSON representation
Find best place to stay
- Host: GitHub
- URL: https://github.com/artamonovkirill/vacations
- Owner: artamonovkirill
- License: apache-2.0
- Created: 2020-06-15T18:58:03.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-11-20T20:40:38.000Z (2 months ago)
- Last Synced: 2024-11-20T21:33:59.578Z (2 months ago)
- Language: Groovy
- Size: 375 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Vacations
This repository contains a few helpful tools for planning vacations.
## Elevation
I'm not a big fan of hot weather, so every July me and my family try to escape the heat.
Going north is not always an option, so sometimes we go up to the mountains. While there are sites that allow you to see altitude of given coordinates (like [this](https://www.advancedconverter.com/map-tools/find-altitude-by-coordinates), it might be a hassle to check every location.
Hence, I wrote a script that given an [airbnb](https://www.airbnb.com/) search url goes over the places and prints out the altitude based on approximate coordinates.
Usage example:
1. Put your Google Map API key in `src/resources/api.key`
2. Start the Spark server (`Vacations.main`)
3. Fetch listing altitude
```bash
curl http://localhost:4567/altitudes --data 'https://www.airbnb.com/rooms/40854734?adults=2&children=1&infants=1&check_in=2021-07-18&check_out=2021-07-24&translate_ugc=false&federated_search_id=56ea90c6-050c-4b76-90da-44d17c20676c&source_impression_id=p3_1623698837_edzGQJ75UQTS%2FvgX&guests=1'
```
3a. Fetch listing altitude with minimal altitude filter:
```bash
curl http://localhost:4567/altitudes?min=50 --data 'https://www.airbnb.com/rooms/40854734?adults=2&children=1&infants=1&check_in=2021-07-18&check_out=2021-07-24&translate_ugc=false&federated_search_id=56ea90c6-050c-4b76-90da-44d17c20676c&source_impression_id=p3_1623698837_edzGQJ75UQTS%2FvgX&guests=1'
```