RecyclingTrashCans / recycling-trashcan-armap

AR map to help finding recycling trashcan locations of CSU Fresno (powered by a companion website, ARCore Geospatial API and Terrain Anchors)
https://play.google.com/store/apps/details?id=dev.csaba.armap.recyclingtrashcans
Apache License 2.0
1 stars 2 forks source link

The Google Earth measured elevation is 40 meter higher than what the app thinks #1

Closed MrCsabaToth closed 2 years ago

MrCsabaToth commented 2 years ago

The elevation values around the Park Ridge apartment complex are around 107-108m. However when I walked out to the entrance the app detected about 77m altitude (I'm not sure from where). This placed the pins into the sky. As a workaround when the user taps to populate the pins, I should request the altitude of the user via a Elevation API, or maybe take the closest pin and assume the user is there. And then offset the elevations by the difference. https://developers.google.com/maps/documentation/elevation/start Screenshot_20220528-173137 Screenshot_20220528-173216

MrCsabaToth commented 2 years ago

If we want to use Elevation API: https://github.com/googlemaps/google-maps-services-java/blob/main/src/main/java/com/google/maps/ElevationApi.java https://www.raywenderlich.com/230-introduction-to-google-maps-api-for-android-with-kotlin

MrCsabaToth commented 2 years ago

I guess we should rather go with the closest pin for testing

MrCsabaToth commented 2 years ago

Success (given that when the user clicks they are at the level of the pins)