UPA Photos Alt text
This feature can be enabled in the API request by including:
"control": {
"features": [
"upa_photo_alt_text"
]
}
The alternative text field for UPA Photos provides a valuable alternate source for describing the image in a text format. It can be filed individually for each photo and can help clients leverage the provided value for displaying the alternative text in situations where the image is unavailable or is preferred to have text over an image (e.g., reading text aloud to visually impaired users). It may also be displayed in place of the image in cases where the image is slow to load or help with search engine optimization (SEO).
This is an example response for a single UPA that has an alt_text
value for its Photo:
{
"data": {
...
"upa": [
{
...
"categories": [
"entertainment"
],
"description": "Download a selection of international newspapers and magazines to your personal device prior to your flight...",
"headline": "Download the app...",
"id": "232939",
"small_icon_url": "https://upamedia.atpco.net/icons/a147da46-3d7e-4062-a70e-70d431e636b6/small/entertainment.png",
"large_icon_url": "https://upamedia.atpco.net/icons/a147da46-3d7e-4062-a70e-70d431e636b6/large/entertainment.png",
"photos": [
{
"alt_text": "Streaming Entertainment",
"caption": "Download a selection of international newspapers and magazines to your personal device prior to your flight using the Air France Play app.",
"large_url": "https://upamedia.atpco.net/photos/6fe8987c-e350-4ca9-aa3a-846f1a972514/large/787_Premium_Economy_cabin_-_streaming_entertainment.jpg",
"media_type": "photo",
"medium_square_url": "https://upamedia.atpco.net/photos/6fe8987c-e350-4ca9-aa3a-846f1a972514/large_square_thumb/787_Premium_Economy_cabin_-_streaming_entertainment.jpg",
"thumb_url": "https://upamedia.atpco.net/photos/6fe8987c-e350-4ca9-aa3a-846f1a972514/square_thumb/787_Premium_Economy_cabin_-_streaming_entertainment.jpg",
"url": "https://upamedia.atpco.net/photos/6fe8987c-e350-4ca9-aa3a-846f1a972514/787_Premium_Economy_cabin_-_streaming_entertainment.jpg"
}
],
"source": "airline",
...
}
]
...
},
"itineraries": [
...
],
...
}