Skip to content
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

Include zoom level in resource listResources requests #222

Open
KvotheBloodless opened this issue Dec 19, 2024 · 1 comment
Open

Include zoom level in resource listResources requests #222

KvotheBloodless opened this issue Dec 19, 2024 · 1 comment

Comments

@KvotheBloodless
Copy link

KvotheBloodless commented Dec 19, 2024

Currently, resource requests coming in from Freeboard include the location and a distance parameter to allow resource providers to geographically select which resources to return in listResources requests. Resource providers may return multiple types of entities in the response to that single request which can result in a cluttered chart display.

If Freeboard were to specify the current zoom level as part of the query, a resource provider could decide to filter out the entities which would not be relevant at that level of zoom.

For example, at a very low zoom, we may be interested in seeing just anchorages, marinas or inlets. As we zoom in, more detailed features such as hazards, navigational aids, boat ramps, etc... become more useful.

@panaaj
Copy link
Member

panaaj commented Dec 19, 2024

I can add %map:zoom% as a token that can be included in the Notes fetch filter in FSK settings.

This is an enhancement to the resources API OpenAPI definition to add zoom as a valid parameter so I have created an issue in the server repository for the roesource provider to be updated.

SignalK/signalk-server#1851

panaaj added a commit that referenced this issue Dec 21, 2024
Display  formatting #212 #213 #214 #217 #218 #223
AIS COG line length options #209
map:zoom token fo resource fetech requests #222
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants