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

Support the inclusion of Zoom level in resource requests #1851

Open
panaaj opened this issue Dec 20, 2024 · 2 comments
Open

Support the inclusion of Zoom level in resource requests #1851

panaaj opened this issue Dec 20, 2024 · 2 comments
Labels

Comments

@panaaj
Copy link
Member

panaaj commented Dec 20, 2024

Ref: SignalK/freeboard-sk#222

Currently Resource API does not support a zoom parameter.

Resource providers may return a large number of entries within a given area which, when displayed on a map can result in a cluttered display.

It would be useful if a zoom level could be provided in the request to allow the provider to further filter the entries returned.
It is recognised that zoom level is a concept that is abstract and will vary in implementation between clients & resource providers, but ultimately it is still a useful filter parameter to support.

Zoom level parameter would accept an integer >= 1 (e.g. zoom=4)

Example request:
/signalk/v2/api/resources/notes?position=[5.562490300291487,53.01296548279345]&distance=92000&zoom=9

@KvotheBloodless
Copy link

KvotheBloodless commented Dec 20, 2024

Zoom level is indeed abstract...

A better value could be a meters (real) per pixel float value. A bit more challenging to calculate no doubt, but at least it would be consistent.

Another option could be actual meters displayed on the diagonal. I think Google maps uses this.

@tkurki
Copy link
Member

tkurki commented Dec 20, 2024

See https://wiki.openstreetmap.org/wiki/Zoom_levels - "number of tiles to cover whole earth" is well defined, but the others are projection dependent. But I think in practise it is still very much usable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants