Project-GC Lua Sandbox API
Loading...
Searching...
No Matches
GetPgcGeoJson

Member Function Documentation

◆ GetPGCGeoJson()

GetPGCGeoJson ( $level,
$country,
$regionNames = [],
$countyNames = [],
$landonly = false )

Returns a list of GeoJSONs in string format.

Parameters
int$level(required) Must be one of (has no default):
  • (string) 'country'
  • (string) 'region'
  • (string) 'county'
string$country(required) A string representing the country.
array$regionNames(optional) A list of region names to filter on. Can be left empty/unset. Ignored if the level is set to 'country'.
array$countyNames(optional) A list of county names to filter on. Can be left empty/unset. Ignored if the level is set to 'country' or 'region'.
bool$landonly(default false) Returns polygons clipped to coastline if true. These generally are more expensive to use, but look better/more correct.
Returns
list of:
  • (string) name
  • (string) geojson