SlideShare uma empresa Scribd logo
1 de 19
Baixar para ler offline
Visualizing Real Time
Flight Data
ShiSh
Data Source
http://www.flightstats.com
API Access to Real Time Flight Data
http://developer.flightstats.com

Register for a
developer
account
Tools Used
• Microsoft Excel 2013 http://bit.ly/Kl0tcp
• Microsoft Power Query Preview for Excel http://bit.ly/1kiymZi
• Power Map Preview for Excel 2013 http://bit.ly/ZLP5gO
Use FlightStats Flex APIs
I will be using the
Delay Index to
identify airports
with delays in real
time

The Weather API
will be used to
retrieve weather
conditions for
airports having
delays
APIs Used
• The DelayIndexService API returns a measure of the level of departure
delays a specified airport is currently experiencing
• A low index (0-1) indicates that departures are running
relatively smoothly. A higher index (4-5) is indicative of
significant delays and flight operations disruptions.
• The index is updated every 30 minutes.

• The Weather API includes METAR, TAF (Terminal Aerodrome/Area
Forecast), and Zone Forecasts.
• METAR reports provide up-to-date information on current
weather conditions at an airport
Interactive Documentation
Use the API Interactive
Documentation to build out the
Query Strings for Power Query

I used the Delay
Indexes by Region
format
Building the Query String
Use the Interactive Documentation to Build
the Query String
Your AppID &
AppKey
Just the Data
for the large
airports
Filtering for
airports with a
Delay Index >=3

Use this Query
String in Power
Query
Using Power Query
Use the Query String generated using the Interactive Documentation:
https://api.flightstats.com:443/flex/delayindex/rest/v1/json/region/North-America?appId=YourAppID&appKey=YourAppKey&classification=1&score=3
Data Acquisition

Click on
List

Right-Click &
Convert to Table

Click & Select the
fields you want to
import
Data Transformation
Change Data Type
to Date /Time
/Timezone

Expand Airport
Data

Transformed Data In Excel:

Rename Fields
Automatic Updates

2. Under Refresh,
Select Connection
Properties

1. Click Design

I set the refresh freq
to 30mins to match
Delay Index updates
Data Visualization
Data Visualization using Power View
for Excel
This data was captured Jan 1, 2014 at
2:30PM PST
I have set the data to automatically
update every 30 minutes
Access Weather Data for Airports
• Use Interactive Documentation for
generating Query String for Weather Data
• The goal is to get airport weather conditions
for airports facing delays
• For generating the query use a sample
aiport code: I used SEA.

Copy this Query
String and use it in
Power Query

https://api.flightstats.com:443/flex/weather/rest/v1/json/metar/SEA?appId=YourAppID&appKey=YourAppKey
Acquire Weather Data for one Airport

1. Click
metar
Record

3. Expand
Weather
condiitions

2. Change
Name of
Query

5. Click on
Record to see
data

4. Click
Weather
Conditions to
expand
Create Re-usable Function for Weather API … 1
Data
returned for
SEA

This is weather data for Seattle. We need to change this
to a parameterized query so that we get weather
conditions for any airport facing delays

Click here to
edit the
query

The Query name
will become the
name of the
custom function

Edit this to make
this a
parameterized
query
Create Re-usable Function for Weather API … 2
Add the AirportCode variable as shown below in the Query and replace SEA with the variable in the Query string as shown.

(AirportCode)=>

Add This

let
Source = Json.Document(Web.Contents("https://api.flightstats.com:443/flex/weather/rest/v1/json/metar/"& (AirportCode)
&"?appId=YourAppID&appKey=YourAppKey"),1252),
metar = Source[metar],
conditions = metar[conditions],
Include the variable in the
weatherConditions = conditions[weatherConditions],
query string
weatherConditions1 = weatherConditions{0}
in
weatherConditions1

The AirportWeather function
can now be invoked with an
AirportCode
Combining Weather Data with Airport Delays
Edit the DelayIndex Query to add a new column that shows weather conditions for the Airports:

Insert
Custom
Column

Call the custom
AirportWeather Function and
pass the FAA Code of the
Airport to it
Have Fun Exploring the Data using Power View &
Power Map

Mais conteúdo relacionado

Mais de ShiSh Shridhar

Mais de ShiSh Shridhar (16)

Azure Maps Mobility Services Workshop
Azure Maps Mobility Services WorkshopAzure Maps Mobility Services Workshop
Azure Maps Mobility Services Workshop
 
Food Safety and Supply Chain Transparency
Food Safety and Supply Chain TransparencyFood Safety and Supply Chain Transparency
Food Safety and Supply Chain Transparency
 
AI & ML for Supply Chain Optimization
AI & ML for Supply Chain OptimizationAI & ML for Supply Chain Optimization
AI & ML for Supply Chain Optimization
 
Digital Transformation through IoT
Digital Transformation through IoTDigital Transformation through IoT
Digital Transformation through IoT
 
Digital Transformation & the Future of Retail
Digital Transformation & the Future of Retail Digital Transformation & the Future of Retail
Digital Transformation & the Future of Retail
 
Delivering Personalized Experiences using the Power of Data
Delivering Personalized Experiences using the Power of Data Delivering Personalized Experiences using the Power of Data
Delivering Personalized Experiences using the Power of Data
 
Retail personalization
Retail personalizationRetail personalization
Retail personalization
 
Session Slides: Top 5 Takeaways from the NRF Big Show 2016
Session Slides: Top 5 Takeaways from the NRF Big Show 2016Session Slides: Top 5 Takeaways from the NRF Big Show 2016
Session Slides: Top 5 Takeaways from the NRF Big Show 2016
 
Tastes, Trends, Touch Points - Understanding Shoppers Through Machine Learning
Tastes, Trends, Touch Points - Understanding Shoppers Through Machine Learning Tastes, Trends, Touch Points - Understanding Shoppers Through Machine Learning
Tastes, Trends, Touch Points - Understanding Shoppers Through Machine Learning
 
Pervasive Personalization with IoT
Pervasive Personalization with IoT Pervasive Personalization with IoT
Pervasive Personalization with IoT
 
How Personalized Marketing and the Internet of Things Will Transform Retail
How Personalized Marketing and the Internet of Things Will Transform RetailHow Personalized Marketing and the Internet of Things Will Transform Retail
How Personalized Marketing and the Internet of Things Will Transform Retail
 
Customer Insights for Retail
Customer Insights for RetailCustomer Insights for Retail
Customer Insights for Retail
 
Empowering Retailers with Customer Insight
Empowering Retailers with Customer InsightEmpowering Retailers with Customer Insight
Empowering Retailers with Customer Insight
 
Analyzing correlations between sales marketing and demographic data
Analyzing correlations between sales marketing and demographic dataAnalyzing correlations between sales marketing and demographic data
Analyzing correlations between sales marketing and demographic data
 
Enterprise Social Computing
Enterprise Social ComputingEnterprise Social Computing
Enterprise Social Computing
 
Retail Cloud Services
Retail Cloud ServicesRetail Cloud Services
Retail Cloud Services
 

Último

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 

Último (20)

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
Cyberprint. Dark Pink Apt Group [EN].pdf
Cyberprint. Dark Pink Apt Group [EN].pdfCyberprint. Dark Pink Apt Group [EN].pdf
Cyberprint. Dark Pink Apt Group [EN].pdf
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdf
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 

Visualizing Real time flight data

  • 3. API Access to Real Time Flight Data http://developer.flightstats.com Register for a developer account
  • 4. Tools Used • Microsoft Excel 2013 http://bit.ly/Kl0tcp • Microsoft Power Query Preview for Excel http://bit.ly/1kiymZi • Power Map Preview for Excel 2013 http://bit.ly/ZLP5gO
  • 5. Use FlightStats Flex APIs I will be using the Delay Index to identify airports with delays in real time The Weather API will be used to retrieve weather conditions for airports having delays
  • 6. APIs Used • The DelayIndexService API returns a measure of the level of departure delays a specified airport is currently experiencing • A low index (0-1) indicates that departures are running relatively smoothly. A higher index (4-5) is indicative of significant delays and flight operations disruptions. • The index is updated every 30 minutes. • The Weather API includes METAR, TAF (Terminal Aerodrome/Area Forecast), and Zone Forecasts. • METAR reports provide up-to-date information on current weather conditions at an airport
  • 7. Interactive Documentation Use the API Interactive Documentation to build out the Query Strings for Power Query I used the Delay Indexes by Region format
  • 8. Building the Query String Use the Interactive Documentation to Build the Query String Your AppID & AppKey Just the Data for the large airports Filtering for airports with a Delay Index >=3 Use this Query String in Power Query
  • 9. Using Power Query Use the Query String generated using the Interactive Documentation: https://api.flightstats.com:443/flex/delayindex/rest/v1/json/region/North-America?appId=YourAppID&appKey=YourAppKey&classification=1&score=3
  • 10. Data Acquisition Click on List Right-Click & Convert to Table Click & Select the fields you want to import
  • 11. Data Transformation Change Data Type to Date /Time /Timezone Expand Airport Data Transformed Data In Excel: Rename Fields
  • 12. Automatic Updates 2. Under Refresh, Select Connection Properties 1. Click Design I set the refresh freq to 30mins to match Delay Index updates
  • 13. Data Visualization Data Visualization using Power View for Excel This data was captured Jan 1, 2014 at 2:30PM PST I have set the data to automatically update every 30 minutes
  • 14. Access Weather Data for Airports • Use Interactive Documentation for generating Query String for Weather Data • The goal is to get airport weather conditions for airports facing delays • For generating the query use a sample aiport code: I used SEA. Copy this Query String and use it in Power Query https://api.flightstats.com:443/flex/weather/rest/v1/json/metar/SEA?appId=YourAppID&appKey=YourAppKey
  • 15. Acquire Weather Data for one Airport 1. Click metar Record 3. Expand Weather condiitions 2. Change Name of Query 5. Click on Record to see data 4. Click Weather Conditions to expand
  • 16. Create Re-usable Function for Weather API … 1 Data returned for SEA This is weather data for Seattle. We need to change this to a parameterized query so that we get weather conditions for any airport facing delays Click here to edit the query The Query name will become the name of the custom function Edit this to make this a parameterized query
  • 17. Create Re-usable Function for Weather API … 2 Add the AirportCode variable as shown below in the Query and replace SEA with the variable in the Query string as shown. (AirportCode)=> Add This let Source = Json.Document(Web.Contents("https://api.flightstats.com:443/flex/weather/rest/v1/json/metar/"& (AirportCode) &"?appId=YourAppID&appKey=YourAppKey"),1252), metar = Source[metar], conditions = metar[conditions], Include the variable in the weatherConditions = conditions[weatherConditions], query string weatherConditions1 = weatherConditions{0} in weatherConditions1 The AirportWeather function can now be invoked with an AirportCode
  • 18. Combining Weather Data with Airport Delays Edit the DelayIndex Query to add a new column that shows weather conditions for the Airports: Insert Custom Column Call the custom AirportWeather Function and pass the FAA Code of the Airport to it
  • 19. Have Fun Exploring the Data using Power View & Power Map