-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
RENAUD Maxence DGAC/CRNA-N
committed
Aug 1, 2019
1 parent
70a7c87
commit 37e958b
Showing
1 changed file
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
Pour le wiki complet, [c'est par ici](https://gitlab.asap.dsna.fr/maxence.renaud/soapy/wikis/home). | ||
|
||
Aperçu de l'utilisation du module : | ||
```python | ||
from soapy.manager import Manager | ||
|
||
# on instancie son propre manager | ||
test_manager = Manager() | ||
|
||
# pour afficher les différents services disponibles | ||
test_manager.show_available_services() | ||
|
||
# pour afficher les différentes opérations disponibles pour un service particulier | ||
test_manager.show_operations_of_service(service_name='FlightManagementService') | ||
|
||
# on précise les champs qui nous intéressent pour des requêtes de listes de vols (voir doc NM) | ||
requestedFlightFields = ['flightState', 'cfmuFlightType'] | ||
|
||
# pour afficher une liste de vols pour un Traffic Volume donné | ||
flight_list = test_manager.queryFlightsByTrafficVolume( | ||
trafficVolume='LFFTN', | ||
startTime="2019-07-26 11:00", | ||
endTime="2019-07-26 13:30", | ||
requestedFlightFields=requestedFlightFields) | ||
print(flight_list.data) | ||
|
||
# pour afficher une liste de vols pour un terrain donné | ||
flight_list = test_manager.queryFlightsByAerodrome( | ||
aerodrome="LFPG", | ||
aerodromeRole="DEPARTURE", | ||
startTime="2019-07-26 11:00", | ||
endTime="2019-07-26 13:30", | ||
requestedFlightFields=requestedFlightFields) | ||
print(flight_list.data) | ||
|
||
``` |