Skip to content

Opening hours templates depending on location/POI type #33

@ltog

Description

@ltog

When creating opening hours we can choose from several templates, e.g. "Weekdays with lunch break". These templates use hardcoded values for opening and closing times (defined in https://github.com/simonpoole/OpeningHoursFragment/blob/015d0b49140a24eeb13cd839edca108e2affad32/lib/src/main/java/ch/poole/openinghoursfragment/TemplateDatabaseHelper.java AFAICS).

I'd like to propose a system, where the exact hours are depending on the user's current position (e.g. country) and the type of POI (e.g. bank, restaurant), which the user wants to edit. Rationale: Different types of POIs (e.g. bank and restaurant) likely will have differing opening hours (banks typically are closed at noon and in the evening, while restaurants are not). The exact hours will also depend on local laws and customs, therefore the position of the user should also be considered.

What opening hours should be contained in the templates? We can use existing OSM data to do some data mining and gather the most frequently used combinations. I can assist if wanted...

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions