peru_spatial_utils library

Functions

boundingBox(Map<String, dynamic> geojson) → BoundingBox
boundingBoxOf(String code) → GeoBounds?
calculateTerritorialRisk(List<Intersection> intersections) → TerritorialRisk
centroid(String code) → LatLng?
classifyHazard(String text) → String
distance(List<double> a, List<double> b) → double
distanceBetween(String codeA, String codeB) → double?
formatArea(double m2) → String
generateRecommendations(List<String> entities) → List<String>
generateTerritorialSummary(List<Intersection> intersections) → String
getChildren(String ubigeoCode) → List<UbigeoRecord>
getDepartment(String code) → UbigeoRecord?
getDistrict(String code) → UbigeoRecord?
getFullHierarchy(String ubigeoCode) → UbigeoHierarchy
getProvince(String code) → UbigeoRecord?
getRegion(String code) → UbigeoRecord?
getRegionNatural(double lat, double lng) → String?
getSiblings(String ubigeoCode) → List<UbigeoRecord>
hazardForCategory(String category) → String
isValidUbigeo(String code) → bool
nearestDistricts(String code, {int limit = 10}) → List<DistrictDistance>
nearestDistrictsTo(double lat, double lng, {int limit = 10}) → List<DistrictDistance>
normalizeName(String text) → String
normalizeText(String input) → String
parentOf(String code) → String?
recommendationFor(String entity) → String
reverseGeocode(double lat, double lng) → ReverseGeocodeResult
riskLevelToScore(String level) → int
searchDepartments(String query, {int limit = 10}) → List<UbigeoRecord>
searchDistricts(String query, {int limit = 10}) → List<UbigeoRecord>
searchProvinces(String query, {int limit = 10}) → List<UbigeoRecord>
toGeoJSON(Object recordOrRecords) → Map<String, dynamic>
toHectares(double m2) → double
toKm2(double m2) → double
toUTM(double lat, double lng) → UtmPoint
toWGS84(double easting, double northing, int zone) → LatLng
utmZoneFor(double lng) → int
validateCoordinates(double lat, double lng) → bool