Scottish-Tech-Army / Soundscape-Android

This is the source for an Android version of the original iOS Soundscape app
https://scottish-tech-army.github.io/Soundscape-Android/
Other
2 stars 2 forks source link

Change to make distance_to work the same as original Soundscape. #178

Closed AsquaredWsquared closed 1 day ago

AsquaredWsquared commented 1 day ago

Previously was using a bounding box and the middle of a feature to calculate and insert "distance_to" as a foreign member which works well with Points but not so much with large, irregularly shaped Polygons. Now calculating the nearest edge of a feature rather than its center. This is more "expensive" to calculate than a simple bounding box but gives us the same behaviour as Soundscape.