This is a Viber bot created using ASP.NET Core WebApi. The bot provides walking tour suggestions to users based on their location using data stored in a MSSQL database. The procedure for calculating the walking tours is also included in the project.
To run this bot locally, you need to have the following software installed on your system:
- Clone the repository and open it in Visual Studio or another code editor.
- Open the MSSQL script file provided and run it to create the necessary database tables.
- Modify the connection string in the appsettings.json file to point to the newly created database.
- Build and run the project in your code editor.
- Start ngrok and expose the local port the project is running on.
- Register a Viber public account and set up a bot.
- Configure the Viber bot webhook to point to the ngrok URL.
- Use the bot to get walking tour suggestions based on the user's location or to get information about walking tours by entering an IMEI number.
The procedure for calculating the walking tours includes the following steps:
- Divide the data into separate walks. A new walk is considered if the time between the last signal is 30 minutes or more.
- Calculate the distance covered for each walk.
- Calculate the duration of each walk.
- Calculate the total distance and total duration for the day.
- Create a Viber bot that displays the total information and a top 10 list of walking tours by distance covered.