-
-
Notifications
You must be signed in to change notification settings - Fork 92
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
Add API for other apps to show locations on the map #836
Comments
Hej MeiKatz,
But if your intention was just to show your Facilities as one of this hard-coded objects, then you could use exiting filters and API's. @eneiluj : Any other thoughts/ Ideas? |
Hej Tacruc, thanks for your quick response. Actually I thought about something like the unified search provider for this issue. But I am not sure how an NC app could make an own provider available for other apps. I guess the apps must check for the existence of an interface like |
@eneiluj Do you have any experience in how to implement something like this? Maybe we could have a meeting to discuss this? |
I started a discussion in the NextCloud forum on this topic because currently I don't know the best practices in NextCloud for this kind of problem: https://help.nextcloud.com/t/make-custom-app-api-available-via-custom-provider/144543 |
@MeiKatz That's a great idea! For the provider registration, as Maps is not part of the core (it's an app, duh) we won't be able to extend If you want to see examples of that kind of mechanism, the Dashboard and the RichText widgets are doing similar stuff to let apps register stuff:
Then, we need to think it properly from the beginning. We need to define what's a provider, what's a geolocated item. First questions that come to mind:
And then, some more limitations or difficulties. For example, do we clusterify the items on the map? If so, we need an abstract way to do so, the provider should define how to render a cluster. We can provide support during development. I have limited time though. I'll try to be responsive. |
@eneiluj I didn't talk about the But: I think the idea with the events is still a step better than my first thought. I like it! @tacruc Yes, I am available. Just say some date and time for a conference and I try to join you. |
@MeiKatz Arne was talking about this conference 😁 https://nextcloud.com/blog/youre-invited-nextcloud-conference-on-october-1-2-in-berlin/ @MeiKatz Your registration solution would work as well and is pretty much equivalent to the event. The event allows the Maps app to decide if it wants to receive providers or not by emitting the event or not. |
@eneiluj My bad. No, unfortunally I am not in Berlin at the conference. Maybe we can meet up at some other time and place. |
Hej, first things first: I am grateful that there is a maps app for NextCloud. But IMHO it could be a lot more useful if other apps could provide locations to show in the Maps app. For example the contacts app has the ability to show contacts from other sources (not only the contacts in the app itself and from the Mail app).
My use case is, that we have a lot of facilities that we manage in an own app. It would be nice if we could view them in the Maps app. Currently we could provide them via the Contacts app but there is no way to show only our facilities.
Is there any way to add this feature? Or any point to start off so I could add this feature by myself? As it is an API endpoint I guess there should be some thoughts about the definition of the endpoint.
The text was updated successfully, but these errors were encountered: