Page 1 of 1

How to assign current City/State/Province to a variable?

Posted: 05 Jul 2018 02:17
by dragon
What would be an efficient flow to assign the current City/State/Province to a variable?

Re: How to assign current City/State/Province to a variable?

Posted: 05 Jul 2018 06:07
by Desmanto
Do you mean to retrieve your current location's city? You can use openmap API. There is similar thread for this : viewtopic.php?f=5&t=7457

Just look for which administrative level you need.