geonames 0.2.2 → 0.3.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (71) hide show
  1. data/.gitignore +6 -0
  2. data/.rspec +2 -0
  3. data/Gemfile +7 -0
  4. data/README.markdown +82 -0
  5. data/Rakefile +13 -0
  6. data/init.rb +1 -0
  7. data/lib/geonames.rb +38 -22
  8. data/lib/geonames/bounding_box.rb +12 -0
  9. data/lib/{country_subdivision.rb → geonames/config.rb} +26 -13
  10. data/lib/geonames/country_info.rb +18 -0
  11. data/lib/{Rakefile.rb → geonames/country_subdivision.rb} +11 -6
  12. data/lib/geonames/intersection.rb +28 -0
  13. data/lib/{toponym_search_result.rb → geonames/postal_code.rb} +10 -16
  14. data/lib/geonames/postal_code_search_criteria.rb +50 -0
  15. data/lib/{timezone.rb → geonames/timezone.rb} +10 -11
  16. data/lib/geonames/toponym.rb +29 -0
  17. data/lib/geonames/toponym_search_criteria.rb +34 -0
  18. data/lib/{address.rb → geonames/toponym_search_result.rb} +10 -7
  19. data/lib/geonames/version.rb +3 -0
  20. data/lib/geonames/web_service.rb +467 -0
  21. data/lib/{wikipedia_article.rb → geonames/wikipedia_article.rb} +5 -20
  22. data/ruby-geonames.gemspec +24 -0
  23. data/spec/fixtures/country_info/thailand.xml.http +29 -0
  24. data/spec/fixtures/country_subdivision/ontario.xml.http +20 -0
  25. data/spec/fixtures/countrycode/canada.xml.http +16 -0
  26. data/spec/fixtures/find_nearby/marchtrenk.xml.http +37 -0
  27. data/spec/fixtures/find_nearby/wilkinson.xml.http +23 -0
  28. data/spec/fixtures/find_nearby_place_name/oshawa.xml.http +23 -0
  29. data/spec/fixtures/find_nearby_postal_codes/oshawa.xml.http +81 -0
  30. data/spec/fixtures/find_nearby_wikipedia/general_motors_centre.xml.http +81 -0
  31. data/spec/fixtures/find_nearest_intersection/park_ave_and_e_51st_st.xml.http +24 -0
  32. data/spec/fixtures/hierarchy/zurich.xml.http +87 -0
  33. data/spec/fixtures/postal_code_search/lat_lng.xml.http +81 -0
  34. data/spec/fixtures/postal_code_search/oshawa.xml.http +77 -0
  35. data/spec/fixtures/search/austria.xml.http +146 -0
  36. data/spec/fixtures/search/marchtrenk.xml.http +93 -0
  37. data/spec/fixtures/search/upper_austria.xml.http +48 -0
  38. data/spec/fixtures/timezone/america_toronto.xml.http +24 -0
  39. data/spec/fixtures/wikipedia_bounding_box/wyoming.xml.http +154 -0
  40. data/spec/geonames/postal_code_search_criteria_spec.rb +31 -0
  41. data/spec/geonames/web_service/country_code_spec.rb +24 -0
  42. data/spec/geonames/web_service/country_info_spec.rb +42 -0
  43. data/spec/geonames/web_service/country_subdivision_spec.rb +24 -0
  44. data/spec/geonames/web_service/find_bounding_box_wikipedia_spec.rb +28 -0
  45. data/spec/geonames/web_service/find_nearby_place_name_spec.rb +24 -0
  46. data/spec/geonames/web_service/find_nearby_postal_codes_spec.rb +29 -0
  47. data/spec/geonames/web_service/find_nearby_spec.rb +41 -0
  48. data/spec/geonames/web_service/find_nearby_wikipedia_spec.rb +26 -0
  49. data/spec/geonames/web_service/find_nearest_intersection_spec.rb +18 -0
  50. data/spec/geonames/web_service/hierarchy_spec.rb +23 -0
  51. data/spec/geonames/web_service/postal_code_search_spec.rb +49 -0
  52. data/spec/geonames/web_service/search_spec.rb +54 -0
  53. data/spec/geonames/web_service/timezone_spec.rb +22 -0
  54. data/spec/geonames/web_service_spec.rb +13 -0
  55. data/spec/spec_helper.rb +13 -0
  56. data/spec/support/fakeweb.rb +9 -0
  57. metadata +152 -61
  58. data/README +0 -0
  59. data/geonames-0.2.2.gem +0 -0
  60. data/geonames.gemspec +0 -18
  61. data/lib/intersection.rb +0 -42
  62. data/lib/main.rb +0 -63
  63. data/lib/postal_code.rb +0 -40
  64. data/lib/postal_code_search_criteria.rb +0 -84
  65. data/lib/toponym.rb +0 -45
  66. data/lib/toponym_search_criteria.rb +0 -44
  67. data/lib/web_service.rb +0 -493
  68. data/nbproject/private/private.properties +0 -0
  69. data/nbproject/private/private.xml +0 -4
  70. data/nbproject/project.properties +0 -3
  71. data/nbproject/project.xml +0 -15
@@ -1,6 +1,7 @@
1
1
  #=============================================================================
2
2
  #
3
3
  # Copyright 2007 Adam Wisniewski <adamw@tbcn.ca>
4
+ # Contributions by Chris Griego
4
5
  #
5
6
  # Licensed under the Apache License, Version 2.0 (the "License"); you may not
6
7
  # use this file except in compliance with the License. You may obtain a copy of
@@ -18,25 +19,9 @@
18
19
 
19
20
  module Geonames
20
21
  class WikipediaArticle
21
-
22
- attr :language
23
- attr :title
24
- attr :summary
25
- attr :wikipedia_url
26
- attr :feature
27
- attr :population
28
- attr :elevation
29
- attr :latitude
30
- attr :longitude
31
- attr :thumbnail_img
32
- attr :distance
33
-
34
- attr_writer :language, :title, :summary
35
- attr_writer :wikipedia_url, :feature, :population
36
- attr_writer :elevation, :latitude, :longitude
37
- attr_writer :thumbnail_img, :distance
38
-
22
+ attr_accessor :language, :title, :summary,
23
+ :wikipedia_url, :feature, :population,
24
+ :elevation, :latitude, :longitude,
25
+ :thumbnail_img, :distance
39
26
  end
40
27
  end
41
-
42
-
@@ -0,0 +1,24 @@
1
+ # -*- encoding: utf-8 -*-
2
+ $:.push File.expand_path("../lib", __FILE__)
3
+ require "geonames/version"
4
+
5
+ Gem::Specification.new do |s|
6
+ s.name = "geonames"
7
+ s.version = Geonames::VERSION
8
+ s.platform = Gem::Platform::RUBY
9
+ s.authors = ["Adam Wisniewski"]
10
+ s.email = ["adamw@tbcn.ca"]
11
+ s.homepage = "http://github.com/elecnix/ruby-geonames"
12
+ s.summary = %q{Ruby library for Geonames Web Services (http://www.geonames.org/export/)}
13
+ s.licenses = ["Apache 2.0"]
14
+
15
+ s.files = `git ls-files`.split("\n")
16
+ s.test_files = `git ls-files -- spec/**/*_spec.rb`.split("\n")
17
+ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
18
+ s.extra_rdoc_files = ["README.markdown"]
19
+
20
+ s.add_development_dependency "bundler"
21
+ s.add_development_dependency "fakeweb"
22
+ s.add_development_dependency "rake"
23
+ s.add_development_dependency "rspec"
24
+ end
@@ -0,0 +1,29 @@
1
+ HTTP/1.1 200 OK
2
+ Date: Sun, 14 Nov 2010 17:02:27 GMT
3
+ Server: Apache/2.2.13 (Linux/SUSE)
4
+ Cache-Control: no-cache
5
+ Access-Control-Allow-Origin: *
6
+ Transfer-Encoding: chunked
7
+ Content-Type: text/xml;charset=UTF-8
8
+
9
+ <?xml version="1.0" encoding="UTF-8" standalone="no"?>
10
+ <geonames>
11
+ <country>
12
+ <countryCode>TH</countryCode>
13
+ <countryName>Thailand</countryName>
14
+ <isoNumeric>764</isoNumeric>
15
+ <isoAlpha3>THA</isoAlpha3>
16
+ <fipsCode>TH</fipsCode>
17
+ <continent>AS</continent>
18
+ <capital>Bangkok</capital>
19
+ <areaInSqKm>514000.0</areaInSqKm>
20
+ <population>67089500</population>
21
+ <currencyCode>THB</currencyCode>
22
+ <languages>th,en</languages>
23
+ <geonameId>1605651</geonameId>
24
+ <bBoxWest>97.345642</bBoxWest>
25
+ <bBoxNorth>20.463194</bBoxNorth>
26
+ <bBoxEast>105.639389</bBoxEast>
27
+ <bBoxSouth>5.61</bBoxSouth>
28
+ </country>
29
+ </geonames>
@@ -0,0 +1,20 @@
1
+ HTTP/1.1 200 OK
2
+ Date: Sat, 13 Nov 2010 18:07:48 GMT
3
+ Server: Apache/2.2.13 (Linux/SUSE)
4
+ Cache-Control: no-cache
5
+ Access-Control-Allow-Origin: *
6
+ Transfer-Encoding: chunked
7
+ Content-Type: text/xml;charset=UTF-8
8
+
9
+ <?xml version="1.0" encoding="UTF-8" standalone="no"?>
10
+ <geonames>
11
+ <countrySubdivision>
12
+ <countryCode>CA</countryCode>
13
+ <countryName>Canada</countryName>
14
+ <adminCode1>08</adminCode1>
15
+ <adminName1>Ontario</adminName1>
16
+ <code type="FIPS10-4">08</code>
17
+ <code type="ISO3166-2">ON</code>
18
+ <distance>0.0</distance>
19
+ </countrySubdivision>
20
+ </geonames>
@@ -0,0 +1,16 @@
1
+ HTTP/1.1 200 OK
2
+ Date: Sat, 13 Nov 2010 18:07:24 GMT
3
+ Server: Apache/2.2.13 (Linux/SUSE)
4
+ Cache-Control: no-cache
5
+ Access-Control-Allow-Origin: *
6
+ Transfer-Encoding: chunked
7
+ Content-Type: text/xml;charset=UTF-8
8
+
9
+ <?xml version="1.0" encoding="UTF-8" standalone="no"?>
10
+ <geonames>
11
+ <country>
12
+ <countryCode>CA</countryCode>
13
+ <countryName>Canada</countryName>
14
+ <distance>0.0</distance>
15
+ </country>
16
+ </geonames>
@@ -0,0 +1,37 @@
1
+ HTTP/1.1 200 OK
2
+ Date: Sun, 12 Feb 2012 03:48:24 GMT
3
+ Server: Apache/2.2.17 (Linux/SUSE)
4
+ Cache-Control: no-cache
5
+ Access-Control-Allow-Origin: *
6
+ Transfer-Encoding: chunked
7
+ Content-Type: text/xml;charset=UTF-8
8
+
9
+ <?xml version="1.0" encoding="UTF-8" standalone="no"?>
10
+ <geonames>
11
+ <geoname>
12
+ <toponymName>Marchtrenk</toponymName>
13
+ <name>Marchtrenk</name>
14
+ <lat>48.18333</lat>
15
+ <lng>14.11667</lng>
16
+ <geonameId>2771962</geonameId>
17
+ <countryCode>AT</countryCode>
18
+ <countryName>Austria</countryName>
19
+ <fcl>P</fcl>
20
+ <fcode>PPLA3</fcode>
21
+ <fclName>city, village,...</fclName>
22
+ <fcodeName>seat of a third-order administrative division</fcodeName>
23
+ <population>11666</population>
24
+ <alternateNames/>
25
+ <elevation>0</elevation>
26
+ <continentCode>EU</continentCode>
27
+ <adminCode1 ISO3166-2="4">04</adminCode1>
28
+ <adminName1>Upper Austria</adminName1>
29
+ <adminCode2>418</adminCode2>
30
+ <adminName2>Wels-Land</adminName2>
31
+ <adminCode3>41812</adminCode3>
32
+ <adminName3>Marchtrenk</adminName3>
33
+ <alternateName lang="link">http://en.wikipedia.org/wiki/Marchtrenk</alternateName>
34
+ <timezone dstOffset="2.0" gmtOffset="1.0">Europe/Vienna</timezone>
35
+ <distance>0.61778</distance>
36
+ </geoname>
37
+ </geonames>
@@ -0,0 +1,23 @@
1
+ HTTP/1.1 200 OK
2
+ Date: Sun, 12 Feb 2012 03:48:24 GMT
3
+ Server: Apache/2.2.17 (Linux/SUSE)
4
+ Cache-Control: no-cache
5
+ Access-Control-Allow-Origin: *
6
+ Transfer-Encoding: chunked
7
+ Content-Type: text/xml;charset=UTF-8
8
+
9
+ <?xml version="1.0" encoding="UTF-8" standalone="no"?>
10
+ <geonames>
11
+ <geoname>
12
+ <toponymName>El Granada</toponymName>
13
+ <name>El Granada</name>
14
+ <lat>37.50272</lat>
15
+ <lng>-122.46942</lng>
16
+ <geonameId>5345716</geonameId>
17
+ <countryCode>US</countryCode>
18
+ <countryName>United States</countryName>
19
+ <fcl>P</fcl>
20
+ <fcode>PPL</fcode>
21
+ <distance>0.12368</distance>
22
+ </geoname>
23
+ </geonames>
@@ -0,0 +1,23 @@
1
+ HTTP/1.1 200 OK
2
+ Date: Sat, 13 Nov 2010 18:02:45 GMT
3
+ Server: Apache/2.2.13 (Linux/SUSE)
4
+ Cache-Control: no-cache
5
+ Access-Control-Allow-Origin: *
6
+ Content-Type: text/xml;charset=UTF-8
7
+ Transfer-Encoding: chunked
8
+
9
+ <?xml version="1.0" encoding="UTF-8" standalone="no"?>
10
+ <geonames>
11
+ <geoname>
12
+ <toponymName>Oshawa</toponymName>
13
+ <name>Oshawa</name>
14
+ <lat>43.90012</lat>
15
+ <lng>-78.84957</lng>
16
+ <geonameId>6094578</geonameId>
17
+ <countryCode>CA</countryCode>
18
+ <countryName>Canada</countryName>
19
+ <fcl>P</fcl>
20
+ <fcode>PPL</fcode>
21
+ <distance>2.66799</distance>
22
+ </geoname>
23
+ </geonames>
@@ -0,0 +1,81 @@
1
+ HTTP/1.1 200 OK
2
+ Date: Sat, 13 Nov 2010 18:08:36 GMT
3
+ Server: Apache/2.2.13 (Linux/SUSE)
4
+ Cache-Control: no-cache
5
+ Access-Control-Allow-Origin: *
6
+ Content-Type: text/xml;charset=UTF-8
7
+ Transfer-Encoding: chunked
8
+
9
+ <?xml version="1.0" encoding="UTF-8" standalone="no"?>
10
+ <geonames>
11
+ <code>
12
+ <postalcode>L1G</postalcode>
13
+ <name>Oshawa Central</name>
14
+ <countryCode>CA</countryCode>
15
+ <lat>43.89801</lat>
16
+ <lng>-78.86564</lng>
17
+ <adminCode1>ON</adminCode1>
18
+ <adminName1>Ontario</adminName1>
19
+ <adminCode2/>
20
+ <adminName2/>
21
+ <adminCode3/>
22
+ <adminName3/>
23
+ <distance>0.0</distance>
24
+ </code>
25
+ <code>
26
+ <postalcode>L1H</postalcode>
27
+ <name>Oshawa Southeast</name>
28
+ <countryCode>CA</countryCode>
29
+ <lat>43.89732</lat>
30
+ <lng>-78.86412</lng>
31
+ <adminCode1>ON</adminCode1>
32
+ <adminName1>Ontario</adminName1>
33
+ <adminCode2/>
34
+ <adminName2/>
35
+ <adminCode3/>
36
+ <adminName3/>
37
+ <distance>0.14339342626125087</distance>
38
+ </code>
39
+ <code>
40
+ <postalcode>L1K</postalcode>
41
+ <name>Oshawa East</name>
42
+ <countryCode>CA</countryCode>
43
+ <lat>43.90909</lat>
44
+ <lng>-78.80878</lng>
45
+ <adminCode1>ON</adminCode1>
46
+ <adminName1>Ontario</adminName1>
47
+ <adminCode2/>
48
+ <adminName2/>
49
+ <adminCode3/>
50
+ <adminName3/>
51
+ <distance>4.718573024057838</distance>
52
+ </code>
53
+ <code>
54
+ <postalcode>L1J</postalcode>
55
+ <name>Oshawa Southwest</name>
56
+ <countryCode>CA</countryCode>
57
+ <lat>43.85869</lat>
58
+ <lng>-78.83412</lng>
59
+ <adminCode1>ON</adminCode1>
60
+ <adminName1>Ontario</adminName1>
61
+ <adminCode2/>
62
+ <adminName2/>
63
+ <adminCode3/>
64
+ <adminName3/>
65
+ <distance>5.048786575645401</distance>
66
+ </code>
67
+ <code>
68
+ <postalcode>L1R</postalcode>
69
+ <name>Whitby Central</name>
70
+ <countryCode>CA</countryCode>
71
+ <lat>43.90182</lat>
72
+ <lng>-78.93465</lng>
73
+ <adminCode1>ON</adminCode1>
74
+ <adminName1>Ontario</adminName1>
75
+ <adminCode2/>
76
+ <adminName2/>
77
+ <adminCode3/>
78
+ <adminName3/>
79
+ <distance>5.545591396672559</distance>
80
+ </code>
81
+ </geonames>
@@ -0,0 +1,81 @@
1
+ HTTP/1.1 200 OK
2
+ Date: Sun, 14 Nov 2010 15:57:39 GMT
3
+ Server: Apache/2.2.13 (Linux/SUSE)
4
+ Cache-Control: no-cache
5
+ Access-Control-Allow-Origin: *
6
+ Transfer-Encoding: chunked
7
+ Content-Type: text/xml;charset=UTF-8
8
+
9
+ <?xml version="1.0" encoding="UTF-8" standalone="no"?>
10
+ <geonames>
11
+ <entry>
12
+ <lang>en</lang>
13
+ <title>General Motors Centre</title>
14
+ <summary>The General Motors Centre (GMC) is a 5,500-seat multi-purpose arena located in downtown Oshawa, Ontario at 99 Athol St. E. General Motors Canada was announced as the winner of the naming rights to the arena on October 5th, 2006. The Centre is owned by the City of Oshawa, operated in conjunction with Maple Leafs Sports and Entertainment (...)</summary>
15
+ <feature>sport</feature>
16
+ <countryCode>CA</countryCode>
17
+ <population>0</population>
18
+ <elevation>0</elevation>
19
+ <lat>43.8972</lat>
20
+ <lng>-78.8597</lng>
21
+ <wikipediaUrl>http://en.wikipedia.org/wiki/General_Motors_Centre</wikipediaUrl>
22
+ <thumbnailImg/>
23
+ <distance>1.8824</distance>
24
+ </entry>
25
+ <entry>
26
+ <lang>en</lang>
27
+ <title>Oshawa Airport</title>
28
+ <summary>Oshawa Airport, , is a municipal airport adjacent to the north end of the city of Oshawa, Ontario, Canada. Oshawa Airport is one of the major general aviation airports in the Greater Toronto Area It includes two paved runways and instrument approaches. Oshawa hosts the annual Canadian Aviation Expo, Canada's largest annual aviation event (...)</summary>
29
+ <feature>airport</feature>
30
+ <countryCode> </countryCode>
31
+ <population>0</population>
32
+ <elevation>0</elevation>
33
+ <lat>43.9228</lat>
34
+ <lng>-78.895</lng>
35
+ <wikipediaUrl>http://en.wikipedia.org/wiki/Oshawa_Airport</wikipediaUrl>
36
+ <thumbnailImg/>
37
+ <distance>2.7002</distance>
38
+ </entry>
39
+ <entry>
40
+ <lang>en</lang>
41
+ <title>List of heliports in Canada</title>
42
+ <summary>This is an alphabetical list of heliports in Canada. They are listed in the format: * Airport name as listed in the Canada Flight Supplement (CFS), ICAO code, community served and province, elevation and coordinates. It should be noted that the airport name in the CFS may be different to the name that the airport authority uses. (...)</summary>
43
+ <feature>airport</feature>
44
+ <countryCode> </countryCode>
45
+ <population>0</population>
46
+ <elevation>0</elevation>
47
+ <lat>43.8333</lat>
48
+ <lng>-79.0167</lng>
49
+ <wikipediaUrl>http://en.wikipedia.org/wiki/List_of_heliports_in_Canada</wikipediaUrl>
50
+ <thumbnailImg/>
51
+ <distance>13.0454</distance>
52
+ </entry>
53
+ <entry>
54
+ <lang>en</lang>
55
+ <title>Ajax, Ontario</title>
56
+ <summary>Ajax (2006 population 90,167) is a medium-sized town located in the Golden Horseshoe of south central Ontario, Canada. Ajax is a part of the Greater Toronto Area and the Regional Municipality of Durham. It is approximately east of Toronto on the shores of Lake Ontario and is bordered by the City of Pickering to the west and the Town of Whitby to the east. (...)</summary>
57
+ <feature>city</feature>
58
+ <countryCode>CA</countryCode>
59
+ <population>82000</population>
60
+ <elevation>0</elevation>
61
+ <lat>43.8442</lat>
62
+ <lng>-79.0275</lng>
63
+ <wikipediaUrl>http://en.wikipedia.org/wiki/Ajax%2C_Ontario</wikipediaUrl>
64
+ <thumbnailImg/>
65
+ <distance>13.1568</distance>
66
+ </entry>
67
+ <entry>
68
+ <lang>en</lang>
69
+ <title>Myrtle Station, Ontario</title>
70
+ <summary>Myrtle Station, Ontario is a community in the Town of Whitby, Durham Region, Ontario, Canada. Myrtle Station is located approximately one kilometre north of the community of Myrtle. In 1884, the Canadian Pacific Railway (CPR) built a rail line between Toronto and Montreal through the area (...)</summary>
71
+ <feature>city</feature>
72
+ <countryCode>CA</countryCode>
73
+ <population>0</population>
74
+ <elevation>0</elevation>
75
+ <lat>44.0167</lat>
76
+ <lng>-78.9667</lng>
77
+ <wikipediaUrl>http://en.wikipedia.org/wiki/Myrtle_Station%2C_Ontario</wikipediaUrl>
78
+ <thumbnailImg/>
79
+ <distance>14.5915</distance>
80
+ </entry>
81
+ </geonames>
@@ -0,0 +1,24 @@
1
+ HTTP/1.1 200 OK
2
+ Date: Sat, 13 Nov 2010 17:48:50 GMT
3
+ Server: Apache/2.2.13 (Linux/SUSE)
4
+ Cache-Control: no-cache
5
+ Access-Control-Allow-Origin: *
6
+ Transfer-Encoding: chunked
7
+ Content-Type: text/xml;charset=UTF-8
8
+
9
+ <?xml version="1.0" encoding="UTF-8" standalone="no"?>
10
+ <geonames>
11
+ <intersection>
12
+ <street1>Park Ave</street1>
13
+ <street2>E 51 St</street2>
14
+ <lat>40.757808</lat>
15
+ <lng>-73.973524</lng>
16
+ <distance>0.04</distance>
17
+ <postalcode>10022</postalcode>
18
+ <placename>New York</placename>
19
+ <adminName2>New York</adminName2>
20
+ <adminCode1>NY</adminCode1>
21
+ <adminName1>New York</adminName1>
22
+ <countryCode>US</countryCode>
23
+ </intersection>
24
+ </geonames>
@@ -0,0 +1,87 @@
1
+ HTTP/1.1 200 OK
2
+ Date: Sun, 12 Feb 2012 03:48:24 GMT
3
+ Server: Apache/2.2.17 (Linux/SUSE)
4
+ Cache-Control: no-cache
5
+ Access-Control-Allow-Origin: *
6
+ Transfer-Encoding: chunked
7
+ Content-Type: text/xml;charset=UTF-8
8
+
9
+ <geonames>
10
+ <geoname>
11
+ <toponymName>Earth</toponymName>
12
+ <name>Earth</name>
13
+ <lat>0</lat>
14
+ <lng>0</lng>
15
+ <geonameId>6295630</geonameId>
16
+ <countryCode/>
17
+ <countryName/>
18
+ <fcl>L</fcl>
19
+ <fcode>AREA</fcode>
20
+ </geoname>
21
+ <geoname>
22
+ <toponymName>Europe</toponymName>
23
+ <name>Europe</name>
24
+ <lat>48.69096</lat>
25
+ <lng>9.14062</lng>
26
+ <geonameId>6255148</geonameId>
27
+ <countryCode/>
28
+ <countryName/>
29
+ <fcl>L</fcl>
30
+ <fcode>CONT</fcode>
31
+ </geoname>
32
+ <geoname>
33
+ <toponymName>Swiss Confederation</toponymName>
34
+ <name>Switzerland</name>
35
+ <lat>47.00016</lat>
36
+ <lng>8.01427</lng>
37
+ <geonameId>2658434</geonameId>
38
+ <countryCode>CH</countryCode>
39
+ <countryName>Switzerland</countryName>
40
+ <fcl>A</fcl>
41
+ <fcode>PCLI</fcode>
42
+ </geoname>
43
+ <geoname>
44
+ <toponymName>Kanton Zürich</toponymName>
45
+ <name>Zurich</name>
46
+ <lat>47.41667</lat>
47
+ <lng>8.66667</lng>
48
+ <geonameId>2657895</geonameId>
49
+ <countryCode>CH</countryCode>
50
+ <countryName>Switzerland</countryName>
51
+ <fcl>A</fcl>
52
+ <fcode>ADM1</fcode>
53
+ </geoname>
54
+ <geoname>
55
+ <toponymName>Bezirk Zürich</toponymName>
56
+ <name>Bezirk Zürich</name>
57
+ <lat>47.3711</lat>
58
+ <lng>8.54323</lng>
59
+ <geonameId>6458798</geonameId>
60
+ <countryCode>CH</countryCode>
61
+ <countryName>Switzerland</countryName>
62
+ <fcl>A</fcl>
63
+ <fcode>ADM2</fcode>
64
+ </geoname>
65
+ <geoname>
66
+ <toponymName>Zürich</toponymName>
67
+ <name>Zürich</name>
68
+ <lat>47.38283</lat>
69
+ <lng>8.53071</lng>
70
+ <geonameId>7287650</geonameId>
71
+ <countryCode>CH</countryCode>
72
+ <countryName>Switzerland</countryName>
73
+ <fcl>A</fcl>
74
+ <fcode>ADM3</fcode>
75
+ </geoname>
76
+ <geoname>
77
+ <toponymName>Zürich</toponymName>
78
+ <name>Zurich</name>
79
+ <lat>47.36667</lat>
80
+ <lng>8.55</lng>
81
+ <geonameId>2657896</geonameId>
82
+ <countryCode>CH</countryCode>
83
+ <countryName>Switzerland</countryName>
84
+ <fcl>P</fcl>
85
+ <fcode>PPLA</fcode>
86
+ </geoname>
87
+ </geonames>