juftin / camply

camply, the campsite finder ⛺️ - a tool to find campsites at sold out campgrounds through sites like recreation.gov
https://juftin.com/camply/
MIT License
464 stars 89 forks source link

ReserveAmerica.com #321

Open ctrl-brk opened 6 months ago

ctrl-brk commented 6 months ago

Add support for reserveamerica.com

juftin commented 6 months ago

I've had my eye on reserveamerica.com for some time now. The issue with implementing it as a camply provider is they don't have a public facing RESTful API powering their site.

All current camply providers, like recreation.gov, use a RESTful API. So a campground like Cold Springs - Arapaho Roosevelt NF (CO) has its own API endpoint that returns JSON: GET https://www.recreation.gov/api/media/public/asset/231856. Camply works by reverse engineering these APIs so we can search for campgrounds and ask about their availability.

reserveamaerica.com is a bit more high tech than most providers and doesn't surface an API and instead handles all of this on the backend to render HTML for the front end.

So a provider like ReserveAmerica could work with camply but it would require that camply scrapes the sites's HTML to get data instead of pinging their API. I'm not saying I won't ever implement this but it would require a bunch of work and a new approach for the tool.

mr1716 commented 2 months ago

There is an older API for Reserve America: Third Party API

But it doesn’t show availability information and I think is no longer supported/updated. Plus don’t think it provides what is desired.

mr1716 commented 1 month ago

@juftin there looks to be an API: https://api.reserveamerica.com/ and https://chub.api.reserveamerica.com/, but unsure its use or if available