-
-
Notifications
You must be signed in to change notification settings - Fork 98
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
campsite geolocation #300
Comments
We could expose this via the core This type of information probably isn't useful to our other notification providers so we'll want to make sure to exclude it from their composed responses. |
What about a Google Maps API integration that is passed the name of the location (for state and national parks/forests) and a parsing of the return for coordinates? |
I thought of GMaps idea, and tried a few common geocoding providers. Of the campsites I tested on, several of them were either not found or quite wrong (eg: GMaps would respond with a park rather than the campsite, which can be 30m away or more). Here's the sample code I think if the data is available directly from the provider, that data should be returned. If it isn't available, then by returning a |
This is a pretty easy one. I'd like to source all the data we need from the providers themselves. They should all supply it somewhere. It was easy for RecDotGov and UseDirect. We get latitude/longitude per campsite/campground. How do we feel about something like this ( {
"campsites": [
{
"campsite_id": 46203,
"booking_date": "2023-10-19T00:00:00",
"booking_end_date": "2023-10-20T00:00:00",
"booking_nights": 1,
"campsite_site_name": "Campsite #08",
"campsite_loop_name": null,
"campsite_type": "Camping",
"campsite_occupancy": [
0,
1
],
"campsite_use_type": "Campsite",
"availability_status": "Available",
"recreation_area": "Sunset SB",
"recreation_area_id": 726,
"facility_name": "South Camp (sites 1-37)",
"facility_id": 737,
"booking_url": "https://www.reservecalifornia.com/Web/Default.aspx#!park/726/737",
"location": {
"latitude": 36.8848514805999,
"longitude": -121.827403446999
},
"permitted_equipment": null,
"campsite_attributes": null
}
],
"timestamp": "2023-09-23T06:28:00.766444+00:00"
} |
Looks great! I agree the |
🎉 This issue has been resolved in version 0.31.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Is your feature request related to a problem? Please describe.
As an admin of an application in the local travel space, when my application receives a webhook notification I want to access the geo
location
of a campsite (falling back to the campsite's campground location, facility location, or null) so I can calculate travel distance to the site.Describe the solution you'd like
The webhook response, and/or a general feature, should have a
location
blob withlat/lon
.Describe alternatives you've considered
Using a geocoding API such as google maps or bing maps, querying the
facility_name
andrecreation_area
is close, but often wrong, expensive, and requires lots of network IO. Additionally, it looks like the information is available from many providers already.Additional context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered: