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

Benches in identical locations - not showing on the map #374

Open
edent opened this issue Oct 28, 2024 · 1 comment
Open

Benches in identical locations - not showing on the map #374

edent opened this issue Oct 28, 2024 · 1 comment

Comments

@edent
Copy link
Collaborator

edent commented Oct 28, 2024

Some benches have identical lat/longs:

Screenshot 2024-10-28 at 15-12-59 kennebec-lon krystal uk _ localhost _ openbenc_benches _ benches phpMyAdmin 5 2 1

On the main map, the bench icons overlap, so only one is visible:

Screenshot 2024-10-28 at 15-13-18 OpenBenches Welcome!

Not sure if they can be clustered, or dithered.

edent pushed a commit that referenced this issue Oct 28, 2024
@edent
Copy link
Collaborator Author

edent commented Oct 29, 2024

Currently 4,808 benches have this problem.

SELECT `benchID`, `latitude`, `longitude`
FROM `benches`
WHERE (`latitude`, `longitude`) IN (
    SELECT `latitude`, `longitude`
    FROM benches
    GROUP BY `latitude`, `longitude`
    HAVING COUNT(*) > 1
)  
ORDER BY `benches`.`latitude` DESC

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

1 participant