Download OpenAPI specification:Download
Pour requêter cette API vous avez besoin d'une clé API fournie par Seiki. Cette clé API doit être renseignée à chaque appel HTTP dans le header key.
Voici un exemple en Python :
requests.get(
'https://api.affimobile.seiki.co/v1/simulation/' + ID_SIMULATION,
headers = {'key': MON_API_KEY}
)
Array of objects |
{- "objectifs": [
- {
- "id_objectif": "LILLE",
- "nb_vehicules": 3,
- "date_debut": "2023-09-28",
- "date_fin": "2023-10-14",
- "heure_debut_matin": "10:30:00",
- "heure_fin_matin": "14:00:00",
- "heure_debut_apres_midi": "15:00:00",
- "heure_fin_apres_midi": "17:30:00",
}
]
}{- "id_simulation": "03ba5aac-7b56-4f37-96a9-c21b5a6fd20c"
}{- "output": {
- "population": 0,
- "odv_total": 0,
- "odv_cible": 0,
- "couverture_cible": 0,
- "audience_cible": 0,
- "repetition_cible": 0,
- "grp": 0,
- "objectifs": [
- {
- "id_objectif": "LILLE",
- "nb_vehicules": 3,
- "date_debut": "2023-09-28",
- "date_fin": "2023-10-14",
- "duree": 17,
- "population": 0,
- "odv_total": 0,
- "odv_cible": 0,
- "couverture_cible": 0,
- "audience_cible": 0,
- "repetition_cible": 0,
- "grp": 0,
- "plans": [
- {
- "ordre_passage": 0,
- "lat": 0.1,
- "lng": 0.1
}
]
}
]
}, - "state": "FAILURE | RUNNING | SUCCESS"
}Array of objects |
{- "objectifs": [
- {
- "id_objectif": "LYON",
- "nb_vehicules": 0,
- "date_debut": "2023-09-28",
- "date_fin": "2023-10-14",
}
]
}{- "id_retrospective": "2e02b464-2f7c-437f-95e4-58c928b41499"
}{- "output": {
- "distance_total_km": 0,
- "distance_moyenne_vehicule_jour_km": 0,
- "duree_circulation_h": 0,
- "duree_circulation_moyenne_vehicule_jour_h": 0,
- "population": 0,
- "odv_total": 0,
- "odv_cible": 0,
- "couverture_cible": 0,
- "audience_cible": 0,
- "repetition_cible": 0,
- "grp": 0,
- "intervalle_odv_confiance_95": 0,
- "repartition_sexe": [
- {
- "sexe": "string",
- "pourcentage": 0,
- "indicateur_performance": 0
}
], - "repartition_age": [
- {
- "age": "string",
- "pourcentage": 0,
- "indicateur_performance": 0
}
], - "repartition_csp": [
- {
- "csp": "string",
- "pourcentage": 0,
- "indicateur_performance": 0
}
], - "repartition_date": [
- {
- "date": "string",
- "pourcentage": 0
}
], - "repartition_heure": [
- {
- "heure": 0,
- "pourcentage": 0
}
], - "objectifs": [
- {
- "id_objectif": "LYON",
- "distance_total_km": 0,
- "distance_moyenne_vehicule_jour_km": 0,
- "duree_circulation_h": 0,
- "duree_circulation_moyenne_vehicule_jour_h": 0,
- "population": 0,
- "odv_total": 0,
- "odv_cible": 0,
- "couverture_cible": 0,
- "audience_cible": 0,
- "repetition_cible": 0,
- "grp": 0
}
]
}, - "state": "FAILURE | RUNNING | SUCCESS"
}