WP8 – GPS Alarm – Part 2 – Calculate Point Distance

In my previous post, I had a short description on an idea of how to create an alarm application based on phone’s and destination GPS position rather than time.

My next piece of code was to calculate the distance between my current location and the destination location. After I put my daughter to bed tonight, I powered up my laptop and googled for 30 minutes and came accross a great post by Dragos Manolescu using the Haversine formula. I haven’t tested this method properly, but it seems to fit into a first version of the application.

My next step will be to create an user Interface for the Application to make the users able to store their target destination GPS positions efficiently.

Source code: ContinuousLocation.rar

I used the example found in previous post for this test.


Happy coding….


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s