Class RegionsJSON


  • public class RegionsJSON
    extends java.lang.Object
    RegionsJSON reads GeoJSON formatted ANSS Authoritative Regions.
    • Constructor Summary

      Constructors 
      Constructor Description
      RegionsJSON()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Region parseRegion​(javax.json.JsonObject json)
      Parse Region from a GeoJSON feature.
      Regions parseRegions​(javax.json.JsonObject json)
      Parse Regions from a GeoJSON feature collection.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RegionsJSON

        public RegionsJSON()
    • Method Detail

      • parseRegions

        public Regions parseRegions​(javax.json.JsonObject json)
        Parse Regions from a GeoJSON feature collection.
        Parameters:
        json - geojson feature collection.
        Returns:
        Regions
      • parseRegion

        public Region parseRegion​(javax.json.JsonObject json)
        Parse Region from a GeoJSON feature.
        Parameters:
        json - geojson feature.
        Returns:
        region