campwiz

module
v0.0.0-...-9ed1330 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 30, 2021 License: Apache-2.0

README

campwiz

Command-line interface that lists Bay Area campsites that are available on a particular date, using:

  • Santa Clara County Parks
  • San Mateo County Parks
  • Reserve America
  • Reserve California

screenshot

Requirements:

  • go v1.14+
  • macOS, Windows, or any UNIX flavor

CLI usage:

To search campsites near San Francisco with a minimum rating for a particular set of dates:

 go run cmd/cw/cw.go --dates 2021-01-15,2021-01-29 --min_rating 7 \
   --nights 2 --max_distance 150

Webserver usage:

go run cmd/server/server.go

By default, campwiz listens on port 8080.

Cloud Run Deployments:

VS Code -> Ctrl-Shift-P -> Cloud Code: Deploy to Cloud Run

Roadmap:

  • Flush cache on error
  • SQL persistent cache interface
  • Integrate additional metadata sources (Google Maps, Bing, Yelp)
  • Filtering by campsite type

Directories

Path Synopsis
cmd
cw
The "main" package contains the command-line utility functions.
The "main" package contains the command-line utility functions.
import_cc
import_cc imports data from exported CC HTML files
import_cc imports data from exported CC HTML files
server
The "main" package contains the HTTP server
The "main" package contains the HTTP server
pkg
cache
The campwiz package contains all of the brains for querying campsites.
The campwiz package contains all of the brains for querying campsites.
geo
geo is convenience functions for measuring distance
geo is convenience functions for measuring distance
mangle
Package mangle performs text manipulation
Package mangle performs text manipulation
site
Package site define HTTP handlers.
Package site define HTTP handlers.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL