All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.afrigis.services.reversegeocoding.ReverseGeocodeResponse Maven / Gradle / Ivy

package com.afrigis.services.reversegeocoding;

import com.afrigis.services.Response;

/**
 * 

* Interface for object that encapsulate the responses received from the service * for reverseGeocoding calls. *

* Sample use: *
 *      ServiceCallFactory serviceFactory = AfriGISServices.instance("SomeKey", "SomeSeret");
 *               
 *      ReverseGeocodeRequest params = new ReverseGeocodeRequest(new Coordinate(-26.099082946777344d, 28.063194d));
 *      params.setLayer(Layer.STREETS.toString());
 *
 *      ReverseGeocodeResponse response = serviceFactory.get(params);
 *      List <AddressResult> results = response.listResults();
 *      
 *      for (AddressResult reverseGeocodeAddress : results) {
 *          System.out.println(reverseGeocodeAddress.getDocId());
 *      }
 * 
* @author hendrikc * @see https://developers.afrigis.co.za/portfolio/reverse-geocoding/ * */ public interface ReverseGeocodeResponse extends Response { /** * * @return Number of results returned for position (Integer). Example: 2 */ Integer getCount(); /** * * @return Number of milliseconds the request took to execute on the server (Integer). Example: 59 */ Integer getQtime(); /** * * @return Descriptive message for the response code (String). Example: Invalid attribute */ String getResponseMessage (); /** * * @return Integer result code. 0 = success, error codes */ Integer getResponseCode (); }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy