com.nutiteq.kml
Interface KmlService

All Known Implementing Classes:
GeocodingService, KmlUrlReader

public interface KmlService

Interface for kml services implementation. If inserted into library, results display and update will be handled automatically by library.


Method Summary
 java.lang.String getServiceUrl(WgsBoundingBox boundingBox, int zoom)
          Called after if needsUpdate has returned true.
 int maxResults()
          Maximum number of results returned from this service.
 boolean needsUpdate(WgsBoundingBox boundingBox, int zoom)
          Does the service need an update.
 

Method Detail

needsUpdate

boolean needsUpdate(WgsBoundingBox boundingBox,
                    int zoom)
Does the service need an update. Called after move method.

Parameters:
boundingBox - bounding box for new map location (coordinates in WGS84)
zoom - current zoom level
Returns:
does the service need an update

getServiceUrl

java.lang.String getServiceUrl(WgsBoundingBox boundingBox,
                               int zoom)
Called after if needsUpdate has returned true.

Parameters:
boundingBox - bounding box for screen view of the map (coordinates in WGS84)
zoom - zoom level used
Returns:
url for retrieving displayed kml.

maxResults

int maxResults()
Maximum number of results returned from this service. If, for some reason, server returns more results, extra results will be ignored.

Returns:
number of placemarks returned by this service on one request.