Create a function in flask_app.py file:
def extract_news_flash_location(news_flash_id)
The function receives a news_flash_id, and returns the location of the news_flash.
You can use the "resolution" column in the news_flash table.
@Mano3 can you elaborate what resolutions exist?
From your code I see: 'צומת בינעירוני', 'צומת עירוני', 'כביש בינעירוני', 'רחוב', 'עיר', 'מחוז', 'אחר'
The function will return the resolution data And the location itself as one of the following:
Road: return the resolution and road1
Non-Urban Junction: return the resolution and road1 and road2
Yishuv: return the resolution and yishuv_name
Yishuv and street: return the resolution and yishuv_name and street1
Urban Junction: return the resolution and yishuv_name, street1, and street2
Create a function in flask_app.py file: def extract_news_flash_location(news_flash_id)
The function receives a news_flash_id, and returns the location of the news_flash. You can use the "resolution" column in the news_flash table. @Mano3 can you elaborate what resolutions exist? From your code I see: 'צומת בינעירוני', 'צומת עירוני', 'כביש בינעירוני', 'רחוב', 'עיר', 'מחוז', 'אחר'
The function will return the resolution data And the location itself as one of the following: