Advanced

Change History

New api methods will be announced here. Changes in our data that is relevant to checkers scripts/tags will also be announced here.

Message: Re: IMPORTANT new polygon data

Changed By: magma1447
Change Date: May 21, 2021 04:09PM

Re: IMPORTANT new polygon data
Adding these 3 new methods, should be available in 5-10 minutes:
/// @brief Returns a list of region names given a country
///
/// @param[in] string country
public static function GetRegionNamesInCountry($country) {

/// @brief Returns a list of county names given a country
///
/// @param[in] string country
public static function GetCountyNamesInCountry($country) {

/// @brief Returns a list of county names given a country
///
/// @param[in] string country
/// @param[in] string region
public static function GetCountyNamesInRegion($country, $region) {

Use them like this: PGC.GetRegionNamesInCountry('United States')

EDIT:
Tested it with this script, https://project-gc.com/Tools/Challenges?edit&tagId=60925
Release in two minutes.

Original Message

Author: magma1447
Date: May 21, 2021 04:06PM

Re: IMPORTANT new polygon data
Adding these 3 new methods, should be available in 5-10 minutes:
/// @brief Returns a list of region names given a country
///
/// @param[in] string country
public static function GetRegionNamesInCountry($country) {

/// @brief Returns a list of county names given a country
///
/// @param[in] string country
public static function GetCountyNamesInCountry($country) {

/// @brief Returns a list of county names given a country
///
/// @param[in] string country
/// @param[in] string region
public static function GetCountyNamesInRegion($country, $region) {

Use them like this: PGC.GetRegionNamesInCountry('United States')