The Geolocation API works only on pages served over:
- HTTPS (secure context)
- Local files only
- HTTP without encryption
- FTP
Answer
A) HTTPS (secure context)
Browsers require a secure context (HTTPS) for geolocation.
Computer Science MCQ · More HTML5 for Mobiles MCQs · Practise