GeoCoords from Android Google Maps SEND Intent

痞子三分冷 提交于 2019-12-13 05:44:37

问题


Hello my fellow coders,

I am trying to retrieve GeoCoordinates from an Android Google Maps SEND Intent (as dispatched when selecting to share a selected location) and even after searching around and trying various approaches for hours now I can't seem to get anywhere. However, all I seem to get from the Intent seems to be a text/plain content like this:

Franziskaner Wirtshaus & Biergarten - Trudering-Riem, München

https://some/shortened/maps/link

I tried (amongst others) several approaches from:

  • Get GeoCodes from Android Google Maps App (Not applicable since it opens a new activity)
  • How can I find the latitude and longitude from address? (Geocoder and Geocoding REST API from Google - no suitable results)

None of the above solutions yields any usable results.

Is there a reliable way to get GPS coordinates from something a user selected in Google Maps on Android at all?

Thanks in advance for your help,

Alex


回答1:


I don't know if this app helps you. you can copy coordinates to clipboard or open it with other third party maps

cheers



来源:https://stackoverflow.com/questions/41086476/geocoords-from-android-google-maps-send-intent

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!