actions.maps
¶
Interface to retrieve itinerary.
Module Contents¶
Classes¶
Class using Open Street Map to display directions between 2 points. |
Attributes¶
- actions.maps.MAPS_OUTPUT_HTML_FILE = 'ui/furhat-screen/assets/map/route.html'¶
- actions.maps.MAPS_HTML_FILEPATH = 'assets/map/route.html'¶
- class actions.maps.DirectionMap(conference_city: str)¶
Class using Open Street Map to display directions between 2 points.
- Parameters
conference_city – Conference city.
- get_latlong(address: str) Tuple[float, float] ¶
Retrieves latitude and longitude from an address.
- Parameters
address – Address to get coordinates from.
- Returns
Latitude and longitude.
- get_route_map(origin: str, destination: str) str ¶
Create HTML file with interative maps showing the route between 2 points.
- Parameters
origin – Origin address.
destination – Destination address.
output_file – Path to output HTML file.
- Returns
Path to HTML file with the map.