Skip to content

Commit 89ab310

Browse files
authored
Merge pull request #11 from waterskier2007/master
use numeric values for lat/lng in launchpads
2 parents 02957bb + de00145 commit 89ab310

File tree

2 files changed

+18
-19
lines changed

2 files changed

+18
-19
lines changed

app.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,7 @@ def hash_merge(*hashes)
5353

5454
get '/vehicles' do
5555
content_type :json
56-
merge = hash_merge($falcon9, $falcon_heavy, $dragon)
57-
JSON.pretty_generate(merge)
56+
JSON.pretty_generate([$falcon9, $falcon_heavy, $dragon])
5857
end
5958

6059
get '/vehicles/falcon9' do

data/launchpads.rb

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@
1818
launchpads: [
1919
{
2020
id: 'kwajalein_atoll',
21-
full_name: 'unknown',
21+
full_name: 'Kwajalein Atoll',
2222
status: 'retired',
2323
location: {
2424
name: 'Omelek Island',
2525
region: 'Marshall Islands',
26-
latitude: '9.0477206',
27-
longitude: '167.7431292'
26+
latitude: 9.0477206,
27+
longitude: 167.7431292
2828
},
2929
vehicles_launched: 'falcon 1',
3030
details: 'SpaceX original launch site, where all of the Falcon 1 launches occured. Abandoned as SpaceX decided against upgrading the pad to support Falcon 9.'
@@ -36,8 +36,8 @@
3636
location: {
3737
name: 'Cape Canaveral',
3838
region: 'Florida',
39-
latitude: '28.5618571',
40-
longitude: '-80.577366'
39+
latitude: 28.5618571,
40+
longitude: -80.577366
4141
},
4242
vehicles_launched: 'falcon 9',
4343
details: 'SpaceX primary Falcon 9 launch pad, where all east coast Falcon 9s launched prior to the AMOS-6 anomaly. Initially used to launch Titan rockets for Lockheed Martin. Heavily damaged by the AMOS-6 anomaly with repairs expected to be complete by late summer 2017.'
@@ -49,8 +49,8 @@
4949
location: {
5050
name: 'Cape Canaveral',
5151
region: 'Florida',
52-
latitude: '28.4857244',
53-
longitude: '-80.5449222'
52+
latitude: 28.4857244,
53+
longitude: -80.5449222
5454
},
5555
vehicles_launched: 'falcon 9',
5656
details: 'SpaceX east coast landing pad, where the historic first landing occurred. Originally used for early Atlas missiles and rockets from Lockheed Martin. Currently being expanded to add two smaller pads for Falcon Heavy RTLS missions.'
@@ -62,8 +62,8 @@
6262
location: {
6363
name: 'Cape Canaveral',
6464
region: 'Florida',
65-
latitude: '28.6080585',
66-
longitude: '-80.6039558'
65+
latitude: 28.6080585,
66+
longitude: -80.6039558
6767
},
6868
vehicles_launched: 'falcon 9',
6969
details: 'NASA historic launch pad that launched most of the Saturn V and Space Shuttle missions. Initially for Falcon Heavy launches, it is now launching all of SpaceX east coast missions due to the damage from the AMOS-6 anomaly. After SLC-40 repairs are complete, it will be upgraded to support Falcon Heavy, a process which will take about two months. In the future it will launch commercial crew missions and the Interplanetary Transport System.'
@@ -75,8 +75,8 @@
7575
location: {
7676
name: 'Vandenberg Air Force Base',
7777
region: 'California',
78-
latitude: '34.6440904',
79-
longitude: '120.5931438'
78+
latitude: 34.6440904,
79+
longitude: -120.5931438
8080
},
8181
vehicles_launched: 'falcon 9',
8282
details: 'SpaceX original west coast launch pad for Falcon 1. Performed a static fire but was never used for a launch and abandoned due to scheduling conflicts.'
@@ -88,8 +88,8 @@
8888
location: {
8989
name: 'Vandenberg Air Force Base',
9090
region: 'California',
91-
latitude: '34.6440904',
92-
longitude: '120.5931438'
91+
latitude: 34.6440904,
92+
longitude: -120.5931438
9393
},
9494
vehicles_launched: 'falcon 9',
9595
details: 'SpaceX primary west coast launch pad for polar orbits and sun synchronous orbits, primarily used for Iridium. Also intended to be capable of launching Falcon Heavy.'
@@ -101,8 +101,8 @@
101101
location: {
102102
name: 'Vandenberg Air Force Base',
103103
region: 'California',
104-
latitude: '34.6332043',
105-
longitude: '-120.6156234'
104+
latitude: 34.6332043,
105+
longitude: -120.6156234
106106
},
107107
vehicles_launched: 'falcon 9',
108108
details: 'SpaceX west coast landing pad, has not yet been used. Expected to first be used during the Formosat-5 launch.'
@@ -114,8 +114,8 @@
114114
location: {
115115
name: 'Boca Chica Village',
116116
region: 'Texas',
117-
latitude: '25.9972641',
118-
longitude: '-97.1560845'
117+
latitude: 25.9972641,
118+
longitude: -97.1560845
119119
},
120120
vehicles_launched: 'falcon 9',
121121
details: 'SpaceX new launch site currently under construction to help keep up with the Falcon 9 and Heavy manifests. Expected to be completed in late 2018. Initially will be limited to 12 flights per year, and only GTO launches.'

0 commit comments

Comments
 (0)