i am not able to fetch the user gps coordinates using geolocation api

Topic summary

A developer is encountering an error when attempting to retrieve user GPS coordinates using the JavaScript Geolocation API.

Key Details:

  • The implementation is not working as expected
  • An error is being generated (specifics shown in attached screenshot)
  • The user is seeking guidance on proper implementation

Current Status:

  • Issue remains unresolved
  • No responses or solutions have been provided yet
  • The attached image likely contains error details or code snippet that would help diagnose the problem
Summarized with AI on November 8. AI used: claude-sonnet-4-5-20250929.

how can i get the user gps coordinates
i tried but got an error