Back to project page android-json-http.
The source code is released under:
Apache License
If you think the Android project android-json-http 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 com.example.request; /*from w w w . ja va 2 s . com*/ import java.util.HashMap; import com.example.constant.Request; import com.open.jsonhttp.RequestBean; /** * https://developers.google.com/maps/documentation/geocoding/?hl=zh-CN * <p> * http://maps.googleapis.com/maps/api/geocode/json?address=HK&sensor=true * <p> * geocode api ??????????? * * @author yinghui.hong */ public class GeocodeReqBean extends RequestBean { private String address; public String getAddress() { return address; } public void setAddress(String address) { this.address = address; } @Override public HashMap<String, Object> generateMap() { HashMap<String, Object> hashMap = new HashMap<String, Object>(); hashMap.put(Request.sensor, isSensor()); hashMap.put(Request.address, address); return hashMap; } @Override public String toString() { return "GeocodeReqBean [address=" + address + "]"; } }