The Geolocation Maps API you are using return JSON which consist of Latitude, Longitude and accuracy. If you are getting this response then your implementation is correct. Make sure to put the MAC address of the access point and not your device in the WifiAccessPoint Object is the body of the POST request.
Later you can parse the JSON for the coordinates to display on the maps or display as toast or textview. The Geolocation API figures out the approximate location your device by location the cell tower or the Wi-Fi access point from where you are getting your internet data/connection.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…