문제

I need in WP 8 when a device be in the range of specific point (say 1km range) the application shown a toast notification tell me that am near this place.

도움이 되었습니까?

해결책

You should fix a set of coordinates, latitude and longitude which is your specific point. You have the position changed event for the geolocator which you can handle.

like here:: http://msdn.microsoft.com/en-us/library/windowsphone/develop/jj247548(v=vs.105).aspx

Once you have that working, you can calculate distance between two locations as shown here,

Calculating Distance between two Latitude and Longitude GeoCoordinates

And you can show any pop up on the screen if you find that the distance is greater than or equal to 1km. Hope that helps.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top