airports 0.0.2 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module Airports
2
- VERSION = "0.0.2"
2
+ VERSION = "1.0.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: airports
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tim Rogers
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-24 00:00:00.000000000 Z
11
+ date: 2017-12-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -112,7 +112,6 @@ extensions: []
112
112
  extra_rdoc_files: []
113
113
  files:
114
114
  - ".gitignore"
115
- - ".gitmodules"
116
115
  - ".rspec"
117
116
  - ".travis.yml"
118
117
  - CODE_OF_CONDUCT.md
@@ -123,10 +122,7 @@ files:
123
122
  - airports.gemspec
124
123
  - bin/console
125
124
  - bin/setup
126
- - data/README.md
127
- - data/airports.dat
128
125
  - data/airports.json
129
- - data/reformat.rb
130
126
  - lib/airports.rb
131
127
  - lib/airports/airport.rb
132
128
  - lib/airports/version.rb
@@ -150,9 +146,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
150
146
  version: '0'
151
147
  requirements: []
152
148
  rubyforge_project:
153
- rubygems_version: 2.4.7
149
+ rubygems_version: 2.6.13
154
150
  signing_key:
155
151
  specification_version: 4
156
152
  summary: Access data on airports from around the world
157
153
  test_files: []
158
- has_rdoc:
data/.gitmodules DELETED
@@ -1,3 +0,0 @@
1
- [submodule "data"]
2
- path = data
3
- url = https://github.com/ram-nadella/airport-codes.git
data/data/README.md DELETED
@@ -1,54 +0,0 @@
1
- # Airport codes
2
-
3
- Airport codes and their corresponding data.
4
-
5
- Transform the data provided by [OpenFlights](http://openflights.org/data.html) into a JSON format so that it can be looked up by IATA airport code.
6
-
7
- ## Data Format
8
-
9
- ### Original
10
-
11
- Fileds in the order of appearance, in the original data source
12
-
13
- * Airport ID Unique OpenFlights identifier for this airport.
14
- * Name Name of airport. May or may not contain the City name.
15
- * City Main city served by airport. May be spelled differently from Name.
16
- * Country Country or territory where airport is located.
17
- * IATA/FAA 3-letter FAA code, for airports located in Country "United States of America". 3-letter IATA code, for all other airports. Blank if not assigned.
18
- * ICAO 4-letter ICAO code. Blank if not assigned.
19
- * Latitude Decimal degrees, usually to six significant digits. Negative is South, positive is North.
20
- * Longitude Decimal degrees, usually to six significant digits. Negative is West, positive is East.
21
- * Altitude In feet.
22
- * Timezone Hours offset from UTC. Fractional hours are expressed as decimals, eg. India is 5.5.
23
- * DST Daylight savings time. One of E (Europe), A (US/Canada), S (South America), O (Australia), Z (New Zealand), N (None) or U (Unknown)
24
-
25
- Sample entries from the database
26
-
27
- 507,"Heathrow","London","United Kingdom","LHR","EGLL",51.4775,-0.461389,83,0,"E"
28
- 26,"Kugaaruk","Pelly Bay","Canada","YBB","CYBB",68.534444,-89.808056,56,-6,"A"
29
- 3127,"Pokhara","Pokhara","Nepal","PKR","VNPK",28.200881,83.982056,2712,5.75,"N"
30
-
31
- ### Transformed
32
-
33
- A JSON object with airport data represented as objects with IATA codes as the key. For example `"LHR": {"name": "Heathrow", "city": "London", ...}`
34
-
35
- Sample entry
36
-
37
- ```json
38
- {
39
- "altitude": "83",
40
- "city": "London",
41
- "country": "United Kingdom",
42
- "dst": "E",
43
- "iata": "LHR",
44
- "icao": "EGLL",
45
- "latitude": "51.4775",
46
- "longitude": "-0.461389",
47
- "name": "Heathrow",
48
- "timezone": "0"
49
- }
50
- ```
51
-
52
- # Credits
53
-
54
- Big thanks to [OpenFlights](http://openflights.org) for collecting and making this data available. Check out their website for additional data about airlines, routes etc.