How can I set my latitude and longitude for debugging the Geolocation API with Google Chrome?
For my development system I'd like to be able to set the Geolocation (Lat, Long) in Chrome so that when I'm doing the testing the browser thinks I'm at location X when I really might be at location Y. Does anyone know how to force Google Chrome to use a Lat and Long that I provide as the location? If you're talking about the Geolocation API, you can override the function: navigator.geolocation.getCurrentPosition = function(success, failure) { success({ coords: { latitude: 30, longitude: -105, }, timestamp: Date.now() }); } So when a library calls into the navigator.geolocation