-
Notifications
You must be signed in to change notification settings - Fork 117
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Provide an input for location and country code #119
Comments
I am not quite following. You can pass an empty object if you don’t have a |
Yes indeed, this is possible, but in this case I probably won't get the correct opening hours or the state of the object. |
If you have the needed information already you can just pass it in in the Nominatim JSON format? I think this is already good enough. The library is written to check for a valid Nominatim object where possible so you can pass an incomplete Nominatim JSON and the lib will complain when there is something missing (maybe future releases will use more information from Nominatim. Unlikely but possible) |
I am closing this issue. Feel free to reopen/replay if needed. |
At the moment I would have to create an virtual Nominatim answer to fill
var oh = new opening_hours('We 12:00-14:00', nominatiomJSON, mode);
with a correct nominatiomJSON.Ist there a way to create a new object without building an nominatim answer (as I don't use a direct nominatim call)?
Otherwise I would like to propose (and help) to build an interface for a generic input.
The text was updated successfully, but these errors were encountered: