GeolocMock lets you set the location that IE9 will report to pages via the W3C Geolocation API.
GeolocMock displays latitude, longitude, altitude and uncertainty in textboxes and on a map. A user may change the values in the textboxes directly or click on a location in the map to change the location values that will be reported to IE. A user may press the 'Me' button on the map to move to their actual location in the map.
When the system has no geolocation device installed, IE9 uses a webservice to determine the user's location. GeolocMock uses FiddlerCore to change the values reported by the webservice.
Chrome works similarly and GeolocMock will work for Chrome but it doesn't reset Chrome's geolocation cache so GeolocMock works only inconsistently with Chrome.
Try it with an example geolocation page.
Copyright (c) 2011 David Risney
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
By using this software, you accept these terms. If you do not accept these terms, do not install, build upon, distribute, or use the software.
The software (FiddlerCore) is provided "as is" and you bear the risk of using it. In no event shall I, Eric Lawrence, be liable for any consequential, special, incidental or indirect damages of any kind arising out of the delivery, performance or use of this software. This software was written with care, but no one warrants that the software is error free.
Your sole remedy for any failure or any form of damage caused by this software is a full refund of the fee I have received from you, which in all cases is $0.
You may use any number of copies of the software to design, develop and test your programs that run on a Microsoft Windows operating system. You may copy and distribute the software, in compiled form, to run on a Microsoft Windows operating system. Permission to redistribute FiddlerCore without charge is granted, subject to the following restrictions: You may not: 1> alter any copyright, trademark or patent notice in the software, 2> include the software in malicious, deceptive or unlawful programs.
If you distribute the software, you must 1> require distributors and external end users to agree to terms that protect it at least as much as this agreement, 2> display your valid copyright notice on your programs, 3> indemnify, defend, and hold harmless Eric Lawrence from any claims, including attorneys' fees, related to the distribution or use of your programs or to your modifications to the software.
EXPORT RESTRICTIONS: The software is subject to United States export laws and regulations. You must comply with all domestic and international export laws and regulations that apply to software. These laws include restrictions on destinations, end users and end use.
USE RESTRICTIONS: You warrant that your use of this software is legal and does not violate any law or regulation to which you are subject.
FiddlerCore is (c)2010 Eric Lawrence. All rights reserved.
Icon created by FatCow and licensed under Creative Commons Attribution 3.0 License.