public class WorldPolygons extends Object
Constructor and Description |
---|
WorldPolygons()
Default constructor
|
Modifier and Type | Method and Description |
---|---|
WorldPlace |
byCountry(String country)
Returns a
WorldPlace given a country name. |
WorldPlace |
byCountryCode(String countryCode)
Returns a
WorldPlace given a country code. |
Rectangle |
getBounds()
Get the bounds of all the polygons
|
Collection<WorldPlace> |
getShapes()
Get all the
WorldPlace s. |
public WorldPolygons()
public Collection<WorldPlace> getShapes()
WorldPlace
s.public WorldPlace byCountryCode(String countryCode)
WorldPlace
given a country code.countryCode
- the ISOA2 country code.WorldPlace
public WorldPlace byCountry(String country)
WorldPlace
given a country name.country
- The countryWorldPlace