|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
RegionModel interface.
Method Summary |
Type | Method |
---|---|
java.lang.String[] |
getCountry(Point point)
Given a Point in longitude and latitude, return which
country this point is in. |
int[] |
getInteractRegions(int regionID)
Given a region ID, compute all interacting regions. |
int[] |
getInteractRegions(int regionID,
int[] regions)
Given a region R identified by regID and a list of regions, compute all regions that are in the list and interact with R. |
int[] |
getInteractRegions(Point location)
Given a Point (latitude/longitude)we can define an
"area of interest" (AOI) with the location as the center. |
int[] |
getInteractRegions(Point location,
int[] regions)
Given a list of region-ids and an AOI (see documentation), return the region-ids for the regions that interact with the AOI. |
java.lang.String[] |
getPostalCode(Point point)
Given a Point in longitude and latitude, return which postal
code this point is in. |
java.lang.String[] |
getState(Point point)
Given a Point in longitude and latitude, return which
state/province this point is in. |
Method Detail |
public int[] getInteractRegions(Point location)
Point
(latitude/longitude)we can define an
"area of interest" (AOI) with the location as the center.
Then we can find all point locations that lie within the AOI and all
"regions" (system and user defined) that overlap the AOI.location
- the Point
(latitude/longitude) of the locationpublic int[] getInteractRegions(Point location, int[] regions)
location
- the Point
(latitude/longitude) of the locationregions
- An asc sorted array of non zero region IDs you want to checkpublic int[] getInteractRegions(int regionID)
regionID
- Region IDpublic int[] getInteractRegions(int regionID, int[] regions)
regionID
- Region ID.regions
- An asc sorted array of non zero region IDs you want to checkpublic java.lang.String[] getPostalCode(Point point)
Point
in longitude and latitude, return which postal
code this point is in.point
- the Point
which postal codes we want to findnull
is returned. Please note that this function
may return you mutiple postal codes if the point is very close to
postal code boundaries. The accuracy of this function depends on the region
data quality in the repository.public java.lang.String[] getState(Point point)
Point
in longitude and latitude, return which
state/province this point is in.point
- the Point
which state/province we want to findnull
is returned. Please note that this function
may return you mutiple states if the point is very close to state
boundaries. The accuracy of this function depends on the region
data quality in the repository.public java.lang.String[] getCountry(Point point)
Point
in longitude and latitude, return which
country this point is in.point
- the Point
which country we want to findnull
is returned. Please note that this function
may return you mutiple countries if the point is very close to country
boundaries. The accuracy of this function depends on the region
data quality in the repository.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |