GPS Sim Update – Combine GPS Sim with Mock Location API

Mike Ormond has done some great work combining my GPS Simulator with Peter Torr’s ‘Mock Location API‘. To quote Mike, “So we have a mock for the location API and a method to generate Lat/Lon data that we can control by simply moving your mouse over a map. Wouldn’t it be nice to combine the two?“. Check out his blog post for more information and code.

@keyboardP

Advertisements

GPS Sim Update – Generic Model and DLL

About a week ago, I was emailed an updated version of my GPS Simulator that people might find useful. Deiter (@preconsult) did a great job decoupling the source code and used dependency injection to create a generic model. There’s also a DLL included that will make it easier to reference the project in your applications. Download the source code below and thanks again to Deiter for the great work!

Read more of this post

No Device? No GPS? No Matter! – (With Code!)

Necessity is the mother of all invention and so I went about creating a quick application to better help simulate GPS coordinates when developing for WP7. Most developers don’t have a test device and two common reasons for asking for one is for the GPS and for the accelerometer. The latter has been simulated quite well (via the HTC HD2 or the Wiimote), but the former is usually simulated by manually typing in (or downloading a set of) coordinates. I’m currently reading up on WCF and decided to kill two birds with one stone – learn WCF and help other developers.

So, what is it? Simple – A locally hosted server displaying Bing maps and a client (e.g. your WP7 app) consuming those coordinates. As you move your mouse along the map, the GPS coordinates are retrieved and sent to the phone. This opens up quite a few possibilities. For example, you could store the coordinates every X seconds  in a list to generate a ‘path’ that simulates someone driving from one point to another. If you need to know exact coordinates for your application, you can also extend the app so that you can  press a key whenever you want to store a particular coordinate. Whatever you use it for, hopefully it saves you time and makes it easier to develop the GPS aspects of your application. Check out the video and source code below.

Read more of this post