Teleport public APIs

Admin1Division Resource

The detailed information about an administrative division

Properties

  • geoname_id GeonameID(integer, int32) - The GeoNames.org ID of the administrative division
  • geonames_admin1_code string - The GeoNames.org admin1 code of the administrative division
  • name string - The name of the administrative division

Relations

  • a1:cities resource: Admin1DivisionCityList - The cities that belong to the administrative division
  • a1:country resource: Country - The country the administrative division belongs to

Example

{
    "_links": {
        "a1:cities": {
            "href": "https://api.teleport.org/api/countries/iso_alpha2:US/admin1_divisions/geonames:CA/cities/"
        }, 
        "a1:country": {
            "href": "https://api.teleport.org/api/countries/iso_alpha2:US/"
        }, 
        "curies": [
            {
                "href": "https://developers.teleport.org/api/resources/Location/#!/relations/{rel}/", 
                "name": "location", 
                "templated": true
            }, 
            {
                "href": "https://developers.teleport.org/api/resources/City/#!/relations/{rel}/", 
                "name": "city", 
                "templated": true
            }, 
            {
                "href": "https://developers.teleport.org/api/resources/UrbanArea/#!/relations/{rel}/", 
                "name": "ua", 
                "templated": true
            }, 
            {
                "href": "https://developers.teleport.org/api/resources/Country/#!/relations/{rel}/", 
                "name": "country", 
                "templated": true
            }, 
            {
                "href": "https://developers.teleport.org/api/resources/Admin1Division/#!/relations/{rel}/", 
                "name": "a1", 
                "templated": true
            }, 
            {
                "href": "https://developers.teleport.org/api/resources/Timezone/#!/relations/{rel}/", 
                "name": "tz", 
                "templated": true
            }
        ], 
        "self": {
            "href": "https://api.teleport.org/api/countries/iso_alpha2:US/admin1_divisions/geonames:CA/"
        }
    }, 
    "geoname_id": 5332921, 
    "geonames_admin1_code": "CA", 
    "name": "California"
}