Is there a quick and efficient way to get altitude (elevation) by longitude and latitude on the Android platform?
相关问题
- How can I create this custom Bottom Navigation on
- Bottom Navigation View gets Shrink Down
- How to make that the snackbar action button be sho
- Listening to outgoing sms not working android
- How to create Circular view on android wear?
相关文章
- android开发 怎么把图片放入drawable的文件夹下
- android上如何获取/storage/emulated/下的文件列表
- androidStudio有个箭头不认识
- SQLite不能创建表
- Windows - Android SDK manager not listing any plat
- Animate Recycler View grid when number of columns
- Why is the app closing suddenly without showing an
- Android OverlayItem.setMarker(): Change the marker
elevation app screen http://img509.imageshack.us/img509/4848/elevationc.jpg
My approach is to use USGS Elevation Query Web Service:
And example of use (right in HelloMapView class):
You can also use the Google Elevation API. The online documentation for it is located at: https://developers.google.com/maps/documentation/elevation/
Please note the following from the above API page:
Altering Max Gontar's code above for the Google API gives the following, with the returned elevation given in feet:
If u are using android device which has GPS Recever then there is a method getAltitude() by using that u can get the altitude by elevation.
Google maps have the altitude, what you need is this code
Try this one that I`v built: https://algorithmia.com/algorithms/Gaploid/Elevation
here is example for Java:
The idea to use the Google Elevation API is good, but parsing XML using string functions is not. Also, HttpClient is deprecated now, as using insecure connections.
See here for a better solution: https://github.com/M66B/BackPackTrackII/blob/master/app/src/main/java/eu/faircode/backpacktrack2/GoogleElevationApi.java