|
Oracle Application Server Wireless Java API Reference B14043-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.panama.spatial.SpatialManager
This class defines a manager that can generate service objects for geocoding, mapping, routing and YP.
Usage:
Geocoder geocoder = SpatialManager.getGeocoder();
Mapper mapper = SpatialManager.getMapper();
Router router = SpatialManager.getRouter();
YPFinder ypfinder = SpatialManager.getYPFinder();
Prior to using the providers, the server administrator needs to configure them on the server.
This class defines final variables only and is thread-safe.
Constructor Summary | |
SpatialManager() |
Method Summary | |
static YPBusiness |
createBusiness(Location location, java.lang.String telephone, java.lang.String description) This function creates an object of a class implementing YPBusiness. |
static Location |
createLocation(Point geom, java.lang.String companyName, java.lang.String houseNumber, java.lang.String[] intersectingStreetNames, java.lang.String secondLine, java.lang.String cityName, java.lang.String stateName, java.lang.String postalCode, java.lang.String postalCodeExt, java.lang.String countryName) This function creates an object of a class implementing Location. |
static Location |
createLocation(Point geom, java.lang.String companyName, java.lang.String firstLine, java.lang.String secondLine, java.lang.String lastLine, java.lang.String countryName) Deprecated. Replaced by createLocation(Point, String, String, String[], String, String, String, String, String, String) to reduce ambiguity of representation. |
static Location |
createLocation(Point geom, java.lang.String companyName, java.lang.String firstLine, java.lang.String secondLine, java.lang.String cityName, java.lang.String stateName, java.lang.String postalCode, java.lang.String postalCodeExt, java.lang.String countryName) Deprecated. Replaced by createLocation(Point, String, String, String[], String, String, String, String, String, String) to reduce ambiguity of representation. |
static Location |
createLocation(Point geom, java.lang.String matchCode, java.lang.String companyName, java.lang.String firstLine, java.lang.String secondLine, java.lang.String cityName, java.lang.String stateName, java.lang.String postalCode, java.lang.String postalCodeExt, java.lang.String lastLine, java.lang.String countyName, java.lang.String blockNum) Deprecated. Replaced by createLocation(Point, String, String, String[], String, String, String, String, String, String) to reduce ambiguity of representation. |
static Location |
createLocation(Point geom, java.lang.String matchCode, java.lang.String companyName, java.lang.String firstLine, java.lang.String secondLine, java.lang.String cityName, java.lang.String stateName, java.lang.String postalCode, java.lang.String postalCodeExt, java.lang.String lastLine, java.lang.String countyName, java.lang.String blockNum, java.lang.String countryName) Deprecated. Replaced by createLocation(Point, String, String, String[], String, String, String, String, String, String) to reduce ambiguity of representation. |
static Location |
createLocation(RMRegion region) This function creates an object of a class implementing Location. |
static Location |
createLocation(java.lang.String companyName, java.lang.String houseNumber, java.lang.String[] intersectingStreetNames, java.lang.String secondLine, java.lang.String cityName, java.lang.String stateName, java.lang.String postalCode, java.lang.String postalCodeExt, java.lang.String countryName) This function creates an object of a class implementing Location. |
static Location |
createLocation(java.lang.String companyName, java.lang.String firstLine, java.lang.String secondLine, java.lang.String lastLine, java.lang.String countryName) Deprecated. Replaced by createLocation(String, String, String[], String, String, String, String, String, String) to reduce ambiguity of representation. |
static Location |
createLocation(java.lang.String companyName, java.lang.String firstLine, java.lang.String secondLine, java.lang.String cityName, java.lang.String stateName, java.lang.String postalCode, java.lang.String postalCodeExt, java.lang.String countryName) Deprecated. Replaced by createLocation(String, String, String[], String, String, String, String, String, String) to reduce ambiguity of representation. |
static Point |
createPoint() This function creates an object of a class implementing Point. |
static Point |
createPoint(double longitude, double latitude) This function creates an object of a class implementing Point. |
static Point |
createPoint(double longitude, double latitude, double radiusInMeters) This function creates an object of a class implementing Point. |
static Point |
createPoint(double longitude, double latitude, java.lang.String label) This function creates an object of a class implementing Point. |
static Point |
createPoint(double longitude, double latitude, java.lang.String label, double radiusInMeters) This function creates an object of a class implementing Point. |
static Geocoder |
getGeocoder() This returns a Geocoder object. |
static Geocoder |
getGeocoder(java.lang.Class[] providersToAvoid) This returns a Geocoder object. |
static Geocoder |
getGeocoder(java.lang.String overridingProviderChoice) This returns a Geocoder object. |
static Mapper |
getMapper() This returns a Mapper object. |
static Mapper |
getMapper(java.lang.Class[] providersToAvoid) This returns a Mapper object. |
static Mapper |
getMapper(java.lang.String overridingProviderChoice) This returns a Mapper object. |
static int |
getNumOfAllGeocodingProviders() Returns the number of configured geocoding providers |
static int |
getNumOfAllMappingProviders() Returns the number of configured mapping providers |
static int |
getNumOfAllRoutingProviders() Returns the number of configured routing providers |
static int |
getNumOfAllTrafficProviders() Returns the number of configured traffic providers |
static int |
getNumOfAllYPProviders() Returns the number of configured YP providers |
static RegionModel |
getRegionModel() Get RegionModel. |
static Router |
getRouter() This returns a Router object. |
static Router |
getRouter(java.lang.Class[] providersToAvoid) This returns a Router object. |
static Router |
getRouter(java.lang.String overridingProviderChoice) This returns a Router object. |
static TrafficReporter |
getTrafficReporter() This returns a traffic reporter object. |
static YPFinder |
getYPFinder() This returns a YPFinder object. |
static YPFinder |
getYPFinder(java.lang.Class[] providersToAvoid) This returns a YPFinder object |
static YPFinder |
getYPFinder(java.lang.String overridingProviderChoice) This returns a YPFinder object. |
static boolean |
isCovered(java.lang.Class aClass, java.lang.Class[] types) Returns true if the given class is assignable from the given list of types |
static java.util.Iterator |
listAllGeocodingProviders() This function returns an Iterator enumerating all geocoding providers in undefined order. |
static java.util.Iterator |
listAllMappingProviders() This function returns an Iterator enumerating all mapping providers in undefined order. |
static java.util.Iterator |
listAllRoutingProviders() This function returns an Iterator enumerating all routing providers in undefined order. |
static java.util.Iterator |
listAllTrafficProviders() |
static java.util.Iterator |
listAllYPProviders() This function returns an Iterator enumerating all YP providers in undefined order. |
static void |
reloadPropertiesAndXMLFiles() Reloads the configuration settings associated with the Spatial Manager. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SpatialManager()
Method Detail |
public static YPBusiness createBusiness(Location location, java.lang.String telephone, java.lang.String description)
location
- A Location object representing the address and/or location coordinates of the business. This is an essential component of a Location object and should not be null. However, it is not checked whether the value is non-null.telephone
- a String representing the telephone number of the business (may be null)description
- a String representing a description of the business (may be null)public static Location createLocation(Point geom, java.lang.String companyName, java.lang.String houseNumber, java.lang.String[] intersectingStreetNames, java.lang.String secondLine, java.lang.String cityName, java.lang.String stateName, java.lang.String postalCode, java.lang.String postalCodeExt, java.lang.String countryName)
geom
- a Geometry representing the lat/lon of the locationcompanyName
- a String representing the company namehouseNumber
- a String representing the house numberintersectingStreetNames
- a String array representing the street names on the intersection (if the address is an intersection); in that case no house number is used; if the address is not an intersection, on the other hand, then only one street name is used (and the house number)secondLine
- a String representing the second address linecityName
- a String representing the city namestateName
- a String representing the state namepostalCode
- a String representing the postal codepostalCodeExt
- a String representing the postal code extensioncountryName
- a String representing the countrypublic static Location createLocation(Point geom, java.lang.String companyName, java.lang.String firstLine, java.lang.String secondLine, java.lang.String lastLine, java.lang.String countryName)
geom
- a Geometry representing the lat/lon of the locationcompanyName
- a String representing the company namefirstLine
- a String representing the first address linesecondLine
- a String representing the second address linelastLine
- a String representing the last address linecountryName
- a String representing the countrypublic static Location createLocation(Point geom, java.lang.String companyName, java.lang.String firstLine, java.lang.String secondLine, java.lang.String cityName, java.lang.String stateName, java.lang.String postalCode, java.lang.String postalCodeExt, java.lang.String countryName)
geom
- a Geometry representing the lat/lon of the locationcompanyName
- a String representing the company namefirstLine
- a String representing the first address linesecondLine
- a String representing the second address linecityName
- a String representing the city namestateName
- a String representing the state namepostalCode
- a String representing the postal codepostalCodeExt
- a String representing the postal code extensioncountryName
- a String representing the countrypublic static Location createLocation(Point geom, java.lang.String matchCode, java.lang.String companyName, java.lang.String firstLine, java.lang.String secondLine, java.lang.String cityName, java.lang.String stateName, java.lang.String postalCode, java.lang.String postalCodeExt, java.lang.String lastLine, java.lang.String countyName, java.lang.String blockNum)
geom
- a Geometry representing the lat/lon of the locationmatchCode
- a String representing the match code from geocodingcompanyName
- a String representing the company namefirstLine
- a String representing the first address linesecondLine
- a String representing the second address linecityName
- a String representing the city namestateName
- a String representing the state namepostalCode
- a String representing the postal codepostalCodeExt
- a String representing the postal code extensionlastLine
- a String representing the last address linecountyName
- a String representing the county nameblockNum
- a String representing the block numberpublic static Location createLocation(Point geom, java.lang.String matchCode, java.lang.String companyName, java.lang.String firstLine, java.lang.String secondLine, java.lang.String cityName, java.lang.String stateName, java.lang.String postalCode, java.lang.String postalCodeExt, java.lang.String lastLine, java.lang.String countyName, java.lang.String blockNum, java.lang.String countryName)
geom
- a Geometry representing the lat/lon of the locationmatchCode
- a String representing the match code from geocodingcompanyName
- a String representing the company namefirstLine
- a String representing the first address linesecondLine
- a String representing the second address linecityName
- a String representing the city namestateName
- a String representing the state namepostalCode
- a String representing the postal codepostalCodeExt
- a String representing the postal code extensionlastLine
- a String representing the last address linecountyName
- a String representing the county nameblockNum
- a String representing the block numbercountryName
- a String representing the countrypublic static Location createLocation(RMRegion region)
region
- a RMRegion object representing a region from region modelpublic static Location createLocation(java.lang.String companyName, java.lang.String houseNumber, java.lang.String[] intersectingStreetNames, java.lang.String secondLine, java.lang.String cityName, java.lang.String stateName, java.lang.String postalCode, java.lang.String postalCodeExt, java.lang.String countryName)
companyName
- a String representing the company namehouseNumber
- a String representing the house numberintersectingStreetNames
- a String array representing the street names on the intersection (if the address is an intersection); in that case no house number is used; if the address is not an intersection, on the other hand, then only one street name is used (and the house number)secondLine
- a String representing the second address linecityName
- a String representing the city namestateName
- a String representing the state namepostalCode
- a String representing the postal codepostalCodeExt
- a String representing the postal code extensioncountryName
- a String representing the countrypublic static Location createLocation(java.lang.String companyName, java.lang.String firstLine, java.lang.String secondLine, java.lang.String lastLine, java.lang.String countryName)
companyName
- a String representing the company namefirstLine
- a String representing the first address linesecondLine
- a String representing the second address linelastLine
- a String representing the last address linecountryName
- a String representing the countrypublic static Location createLocation(java.lang.String companyName, java.lang.String firstLine, java.lang.String secondLine, java.lang.String cityName, java.lang.String stateName, java.lang.String postalCode, java.lang.String postalCodeExt, java.lang.String countryName)
companyName
- a String representing the company namefirstLine
- a String representing the first address linesecondLine
- a String representing the second address linecityName
- a String representing the city namestateName
- a String representing the state namepostalCode
- a String representing the postal codepostalCodeExt
- a String representing the postal code extensioncountryName
- a String representing the countrypublic static Point createPoint()
public static Point createPoint(double longitude, double latitude)
longitude
- a double representing the longitude of this PointImpl (must not be null)latitude
- a double representing the latitude of this PointImpl (must not be null)public static Point createPoint(double longitude, double latitude, double radiusInMeters)
longitude
- a double representing the longitude of this PointImpl (must not be null)latitude
- a double representing the latitude of this PointImpl (must not be null)radiusInMeters
- a double representing an optional radius around this pointpublic static Point createPoint(double longitude, double latitude, java.lang.String label)
longitude
- a double representing the longitude of this PointImpl (must not be null)latitude
- a double representing the latitude of this PointImpl (must not be null)label
- a String representing a label for this PointImpl (may be null)public static Point createPoint(double longitude, double latitude, java.lang.String label, double radiusInMeters)
longitude
- a double representing the longitude of this PointImpl (must not be null)latitude
- a double representing the latitude of this PointImpl (must not be null)label
- a String representing a label for this PointImpl (may be null)radiusInMeters
- a double representing an optional radius around this pointpublic static Geocoder getGeocoder()
public static Geocoder getGeocoder(java.lang.Class[] providersToAvoid)
providersToAvoid
- avod the providers in this arraypublic static Geocoder getGeocoder(java.lang.String overridingProviderChoice)
overridingProviderChoice
- a String representing the name of the preferred providerpublic static Mapper getMapper()
public static Mapper getMapper(java.lang.Class[] providersToAvoid)
providersToAvoid
- avod the providers in this arraypublic static Mapper getMapper(java.lang.String overridingProviderChoice)
overridingProviderChoice
- a String representing the name of the preferred providerpublic static int getNumOfAllGeocodingProviders()
public static int getNumOfAllMappingProviders()
public static int getNumOfAllRoutingProviders()
public static int getNumOfAllTrafficProviders()
public static int getNumOfAllYPProviders()
public static RegionModel getRegionModel()
public static Router getRouter()
public static Router getRouter(java.lang.Class[] providersToAvoid)
providersToAvoid
- avod the providers in this arraypublic static Router getRouter(java.lang.String overridingProviderChoice)
overridingProviderChoice
- a String representing the name of the preferred providerpublic static TrafficReporter getTrafficReporter()
public static YPFinder getYPFinder()
public static YPFinder getYPFinder(java.lang.Class[] providersToAvoid)
providersToAvoid
- avod the providers in this arraypublic static YPFinder getYPFinder(java.lang.String overridingProviderChoice)
overridingProviderChoice
- a String representing the name of the preferred providerpublic static boolean isCovered(java.lang.Class aClass, java.lang.Class[] types)
aClass
- a classtypes
- the list of available typespublic static java.util.Iterator listAllGeocodingProviders()
public static java.util.Iterator listAllMappingProviders()
public static java.util.Iterator listAllRoutingProviders()
public static java.util.Iterator listAllTrafficProviders()
public static java.util.Iterator listAllYPProviders()
public static void reloadPropertiesAndXMLFiles()
|
Oracle Application Server Wireless Java API Reference B14043-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |