Extract latitude and longitude from position

Post your questions and help other users.

Moderator: Martin

Post Reply
davinik
Posts: 11
Joined: 23 Oct 2018 12:36

Extract latitude and longitude from position

Post by davinik » 18 Nov 2018 21:15

I'd like to extract the Latitude and longitude from the position variable Because I need to put in a string for making an api call:

http://api.openweathermap.org/data/2.5/ ... 9&lon=12.3

How can I do it?

User avatar
Desmanto
Posts: 2709
Joined: 21 Jul 2017 17:50

Re: Extract latitude and longitude from position

Post by Desmanto » 19 Nov 2018 02:03

As I've answered in another thread, you can look at : viewtopic.php?f=5&t=7457

There is example flow to put the lat long, simply change the url.
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.

davinik
Posts: 11
Joined: 23 Oct 2018 12:36

Re: Extract latitude and longitude from position

Post by davinik » 19 Nov 2018 09:31

Thank y very much, very useful

Post Reply