Sha256: dc7aec520bc31f95b052837a99f4102f6e8d18a68efd65aafdcd5a7d72985d22

Contents?: true

Size: 1.77 KB

Versions: 2

Compression:

Stored size: 1.77 KB

Contents

module GeoNamesAPI
  class Children < ListEndpoint

    METHOD = "childrenJSON"
    FIND_PARAMS = %w(geonameId maxRows)

  end
end

=begin
{
  "totalResultsCount": 20,
  "geonames": [
    {
      "alternateNames": [
        {
          "name": "els Abruços",
          "lang": "ca"
        },
        {
          "name": "Abruzzen",
          "lang": "de"
        },
        {
          "name": "Abruzzo",
          "lang": "en"
        },
        {
          "name": "Los Abruzos",
          "lang": "es"
        },
        {
          "name": "Abruzzes",
          "lang": "fr"
        },
        {
          "name": "Abruzzo",
          "lang": "it"
        },
        {
          "name": "http://en.wikipedia.org/wiki/Abruzzo",
          "lang": "link"
        },
        {
          "name": "Abruzzen",
          "lang": "nl"
        }
      ],
      "countryName": "Italy",
      "adminCode1": "01",
      "lng": "13.75",
      "adminName2": "",
      "fcodeName": "first-order administrative division",
      "adminName3": "",
      "timezone": {
        "dstOffset": 2,
        "gmtOffset": 1,
        "timeZoneId": "Europe/Rome"
      },
      "adminName4": "",
      "adminName5": "",
      "bbox": {
        "south": 41.68307876586914,
        "east": 14.783888816833496,
        "north": 42.8957405090332,
        "west": 13.019405364990234
      },
      "name": "Abruzzo",
      "fcode": "ADM1",
      "geonameId": 3183560,
      "lat": "42.25",
      "population": 1338898,
      "adminName1": "Abruzzo",
      "countryId": "3175395",
      "adminId1": "3183560",
      "fclName": "country, state, region,...",
      "countryCode": "IT",
      "wikipediaURL": "",
      "toponymName": "Regione Abruzzo",
      "fcl": "A",
      "numberOfChildren": 4,
      "continentCode": "EU"
    },

=end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
geonames_api-0.1.6 lib/geonames_api/children.rb
geonames_api-0.1.5 lib/geonames_api/children.rb