Creates an HTML map with the location you entered (black marker) and shows (red markers) the nearest 10 locations where some films where shot in the given year
Program uses folium (generating HTML map) and geopy.geocoders (getting coordinates by location) libraries
Program works from a command line (uses argparse for parsing arguments)
> python main.py 2017 1 1 locations_1.4
It takes 4 positional arguments:
- year
- latitude of the starting point
- longitude of the starting point
- path to the dataset (1.4 thousand films) or the larger one (1.2 million films)
Program creates an html file like this
When you open the map you can: