I am developing a location based web app/website. The website is an HTML webpage, which has a button which when clicked by the user will:
- Extract the user location coordinates
- Run a python Program which will use the user location, perform some manipulation.
- Finally display real-time results back to the html webpage.
The python Program accepts the user location by using geocoder function. The program is successfully running on my system/PC.
I have a AWS EC2 Ubuntu server.
Finally once everything is set up, I will be hosting/deploying the website so that individual users can test it in their system. I am aware of the hosting part.
Can someone please tell me how do I get along with the task of running the python Program on an HTML button click and sending back real time results (which is the output of the python Program) back to the html webpage?