0

I am using this Html Geolocation Javascript code

window.onload = getLocation();
      function getLocation() {
        if (navigator.geolocation) {
          navigator.geolocation.getCurrentPosition(showPosition);
        } else {
          x.innerHTML = "Geolocation is not supported by this browser.";
        }
      }

    
      function showPosition(position) {
        return position.coords.latitude,position.coords.longitude
        }
      showPosition();

I want the latitude and longitude values to be passed to another python script without using FLASK. I am already running django and am looking to run a python script based on these values in background

3
  • try to use ajax Commented May 24, 2021 at 5:11
  • "without using FLASK" You can freely choose your framework but a web application and an HTTP call is the way to go Commented May 24, 2021 at 5:15
  • how to use ajax? Commented May 24, 2021 at 5:36

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.