code: public static location get(nitro_service service, String ipfrom) throws Exception{
  		location obj = new location();
  		obj.set_ipfrom(ipfrom);
  		location response = (location) obj.get_resource(service);
  		return response;
  	}
docs: Use this API to fetch location resource of given name .