Comments (9)
I changed it in #21 for consistency's sake
Potential solution would be to have two options
"launch_site_id": "kwajalein_atoll",
"launch_site": "Kwajalein Atoll"
from spacex-api.
That makes sense. Would it be possible to do a join when fetching the data and then actually return a full launch site object for each launch in the launches endpoint
from spacex-api.
Working on that currently for launch sites, payloads, and links for each launch
from spacex-api.
nice
from spacex-api.
Update
So I've decided to transition the data over to MongoDB for flexibility going forward. The joins weren't giving me what I wanted, and it makes more sense with dynamic data like this.
This should give better flexibility in regards to multiple payloads, links, launch sites, etc... Instead of jumping through lots of SQL joins in order to achieve similar results. This should allow for more agile modeling as new ideas + data come forward.
So the new schema for launches will look similar to the following:
{
"flight_number": 1,
"launch_year": "2006",
"launch_date_utc": "2006-03-24T22:30:00Z",
"launch_date_local": "2006-03-25T10:30:00+12:00",
"rocket": "Falcon 1",
"rocket_type": "Merlin A",
"core_serial": "Merlin 1A",
"cap_serial": null,
"launch_site": {
"site_id": "kwajalein_atoll",
"site_name": "Kwajalein Atoll"
},
"payloads": [
{
"payload_id": "FalconSAT-2",
"customer": "DARPA",
"payload_type": "Satelite",
"payload_mass_kg": 20,
"payload_mass_lbs": 43,
"orbit": "LEO"
}
],
"launch_success": false,
"reused": false,
"land_success": false,
"landing_type": null,
"landing_vehicle": null,
"links": {
"mission_patch": "http://spacexpatchlist.space/images/thumbs/falcon_1_flight_1.png",
"article_link": "https://www.space.com/2196-spacex-inaugural-falcon-1-rocket-lost-launch.html",
"video_link": "https://www.youtube.com/watch?v=0a_00nJ_Y88"
},
"details": "Engine failure at 33 seconds and loss of vehicle"
},
Hoping to make the transition in the next day or so, all the new code is written and tested, just have a few more things to double check before it merges. π
from spacex-api.
Production server is officially switched over to Mongo, working on updating all the launches to the new schema
from spacex-api.
That all looks good, but one thing that has changes is that https://api.spacexdata.com/launchpads now returns an array as the base object. It's an array, with one dictionary that has launchpads and test_locations... How come the root object is an array, it should just be a dictionary.
from spacex-api.
Should be corrected now π
from spacex-api.
All good. Nice work man!
from spacex-api.
Related Issues (20)
- Querying launches against a provided array of values HOT 2
- Small patch images now have black backgrounds, no longer transparent HOT 1
- Starlink 3-1 is missing payload HOT 1
- 403 Errors Suddenly HOT 7
- Getting 503 when requesting from Hetzner VPS HOT 2
- launches/query endpoint does not return launch IDs for ship and crew launches
- Hotbird 13F missing
- Future of the project HOT 9
- Incorrect data under "next" endpoint HOT 2
- USSF-4 is still under βupcomingβ despite it already happening HOT 1
- Website to add on 'List of known Apps'
- Data Inconsistency
- Is the API abandonned? HOT 3
- New app to add to the list of known apps
- Seems like Starlink API is outdated HOT 2
- spam / broken link
- Space π
- Error in server.js File - Uncaught Exception Handling
- Issues with fetching the YouTube ID for upcoming launches.
- allow users to make queries with "id" key along with "_id"
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spacex-api.