This console application fetches directions from the Google Maps Directions API based on provided origin and destination coordinates. It then prints out the route details, including distance, duration, and step-by-step instructions.
Follow these steps to set up and run the application:
- .NET Core SDK: Ensure you have the .NET Core SDK installed on your machine. You can download it from here.
-
Clone the Repository:
git clone https://github.com/Leozartino/Directions.git cd Directions
-
Update
appsettings.json
:- Open
appsettings.json
in the project root. - Replace
"YOUR_GOOGLE_MAPS_API_KEY"
with your actual Google Maps API key.
- Open
Run the application from the command line by providing the origin and destination as command-line arguments.