Package org.opensextant.extractors.geo
Interface BoundaryObserver
- All Known Implementing Classes:
PlaceGeocoder
,PostalGeocoder
public interface BoundaryObserver
Emit a boundary event when you come across a concrete reference to a
boundary,
e.g., county or state, district or prefecture.
- Author:
- ubaldino
-
Method Summary
Modifier and TypeMethodDescriptionvoid
boundaryLevel1InScope
(String normalizedName, org.opensextant.data.Place p) Given the name (lower case, strip quotes), the location candidate infers an ADMIN boundaryvoid
boundaryLevel2InScope
(String normalizedName, org.opensextant.data.Place p) Given the name (lower case, strip quotes), the location candidate infers an ADMIN boundaryCalculates totals and ratios for the discovered set of boundaries, inferred or explicit.
-
Method Details
-
boundaryLevel1InScope
Given the name (lower case, strip quotes), the location candidate infers an ADMIN boundary -
boundaryLevel2InScope
Given the name (lower case, strip quotes), the location candidate infers an ADMIN boundary -
placeMentionCount
Map<String,PlaceCount> placeMentionCount()Calculates totals and ratios for the discovered set of boundaries, inferred or explicit.- Returns:
- counts for boundary places mentioned or inferred
-