)
public class GeoLocationAPI {
@ApiMethod(httpMethod = HttpMethod.GET, path = "getlocation")
public APIResponse getLocation(HttpServletRequest req) {
try {
LocationProp prop = new LocationProp();
prop.country = req.getHeader("X-AppEngine-Country");
prop.region = req.getHeader("X-AppEngine-Region");
prop.city = req.getHeader("X-AppEngine-City");
prop.latLong = req.getHeader("X-AppEngine-CityLatLong");