public static final class GIS.CityService extends Object
The City Webservice is used in the Geo Information Service API to get informations about available cities.
| Modifier and Type | Method and Description |
|---|---|
static City |
get(AbstractClient client,
long is24ContinentId,
long is24CountryId,
long is24RegionId,
long is24CityId)
Call the GET method of the City Webservice.
|
static Cities |
getAll(AbstractClient client,
long is24ContinentId,
long is24CountryId,
long is24RegionId)
Call the GETall method of the City Webservice.
|
public static City get(AbstractClient client, long is24ContinentId, long is24CountryId, long is24RegionId, long is24CityId) throws IOException, oauth.signpost.exception.OAuthException, JAXBException, RequestFailedException
This method returns a specific city.
client - AbstractClient, that is used to communicate with the Webserviceis24ContinentId - ID of the continent to lookup, that was returned by
GIS.ContinentServiceis24CountryId - ID of the country to lookup, that was returned by
GIS.CountryServiceis24RegionId - ID of the region to lookup, that was returned by
GIS.RegionServiceis24CityId - ID of the city to lookup, that was returned by
GIS.RegionService.getAll(org.openestate.is24.restapi.AbstractClient, long, long)IOException - if communication with the Webservice failedoauth.signpost.exception.OAuthException - if authorization failedJAXBException - if XML reading / writing failedRequestFailedException - if the Webservice did not respond with a success messagepublic static Cities getAll(AbstractClient client, long is24ContinentId, long is24CountryId, long is24RegionId) throws IOException, oauth.signpost.exception.OAuthException, JAXBException, RequestFailedException
This method returns the list of available cities for a region.
client - AbstractClient, that is used to communicate with the Webserviceis24ContinentId - ID of the continent to lookup, that was returned by
GIS.ContinentServiceis24CountryId - ID of the country to lookup, that was returned by
GIS.CountryServiceis24RegionId - ID of the region to lookup, that was returned by
GIS.RegionServiceIOException - if communication with the Webservice failedoauth.signpost.exception.OAuthException - if authorization failedJAXBException - if XML reading / writing failedRequestFailedException - if the Webservice did not respond with a success messageCopyright © 2018 OpenEstate. All rights reserved.