Back to project page face_rec_android.
The source code is released under:
GNU General Public License
If you think the Android project face_rec_android listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package in.amolgupta.helpingfaceless.utils; /*from w w w.ja v a 2 s .com*/ import com.google.gson.Gson; import android.location.Location; public class LocationRequestData { String lat; String lng; String address; String locality; String sublocality; String city; String state; String country; public LocationRequestData(Location location) { lat = String.valueOf(location.getLatitude()); lng = String.valueOf(location.getLongitude()); } public String getRequestString(){ Gson gson= new Gson(); return gson.toJson(this); } }