phlask-map icon indicating copy to clipboard operation
phlask-map copied to clipboard

[V2] Grab and populate hours for resource

Open vontell opened this issue 2 years ago • 3 comments

Is your feature request related to a problem? Please describe.

Before a form is submitted, use the lat/lon or address to search the Google Places API for potential hours for that location being open. If multiple locations are present (i.e. multiple businesses at that address), or no hours are available, do not populate the hours within the form.

Get the hours for a place is actually quite easy, using the following endpoint from their API:

https://maps.googleapis.com/maps/api/place/details/json?location={lat},{lon}&key={google_places_api_key}

We will then want to take the hours from that response and add them to the form data, found in AddResourceModalV2.jsx - line 231

vontell avatar Feb 21 '24 14:02 vontell

I can take this ticket

vkavith avatar Apr 18 '24 17:04 vkavith

@vontell is making a big PR related to the new data schema that will address this issue soon.

tomporvaz avatar May 28 '24 23:05 tomporvaz

This was moved to v2.1 as we feel this isn't required for v2

gcardonag avatar Sep 03 '24 23:09 gcardonag