Geolocation sample end to end using Windows Azure Mobile Services

This sample provides and end to end location scenario with a Windows Store app using Bing Maps and a Windows Azure Mobile Services backend. It shows how to add places to the Map, store place coordinates in a Mobile Services table, and how to query for places near your location.

C# (3.5 MB)
 
 
 
 
 
(12)
2,264 times
Add to favorites
5/1/2014
E-mail Twitter del.icio.us Digg Facebook
Sign in to ask a question


  • UnauthorizedAccessException was unhandled by user code
    1 Posts | Last post June 26, 2014
    • I got the exception error at this line in LoadMap 
      await this.RefreshMap();
      
      Additional information: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
      
      why do I get this error? Does it have to run in admin level and some sort of permission? how do I fix this?
      
      Thanks for your help!
      
      
  • Error
    1 Posts | Last post January 21, 2014
    • Opening the map(after F5), I have this erreor at tun-time. Cannot deserialize the current JSON object (e.g. {\"name\":\"value\"}) into type 'System.Collections.Generic.List`1[MyPlaces.DataModel.Place]' because the type requires a JSON array (e.g. [1,2,3]) to deserialize correctly.\r\nTo fix this error either change the JSON to a JSON array (e.g. [1,2,3]) or change the deserialized type so that it is a normal .NET type (e.g. not a primitive type like integer, not a collection type like an array or List<T>) that can be deserialized from a JSON object. JsonObjectAttribute can also be added to the type to force it to deserialize from a JSON object.\r\nPath 'message', line 1, position 11 on this line             
      
      await this.RefreshMap();
      
      
      Thanks in advacne
      all the best,Piero.
      
  • Azure and Bing maps SDK cannot be found
    3 Posts | Last post January 08, 2014
    • Could not find SDK "Bing.Maps.Xaml"
      Could not find SDK "MobileServicesManagedClient"
      
      Any help with this please? :(
    • I removed and then re-installed the references to Bing and Azure and the SDK errors cleared up.  Now I've an error (Member 'MyPlaces.MainPage.GetCurrentPosition()' cannot be accessed with an instance reference; qualify it with a type name instead - MainPage.xaml) and a warning (This document contains one or more controls that have been modified. Please rebuild the project for the changes to display in Design view. - MainPage.xaml.cs) left. 
    • Hi,
      
      the sample has been updated. these should no longer be an issue
      
      kind regards,
      nick 
  • Javascript
    1 Posts | Last post August 06, 2013
    • Any possible way of getting this in JavaScript?
      :( desperate!
      
      
  • Step 13
    1 Posts | Last post April 29, 2013
    • How can I return id of the created object in the script (step 13)?
  • Step 13 completed
    1 Posts | Last post January 17, 2013
    • Thanks for this great code.
      After step 13 it says :
      
      This script parses the latitude and longitude values and creates a SQL Server geography instance. In order to do this, you need to execute a custom query using the mssql object. For more information about mssql go to http://msdn.microsoft.com/en-us/library/windowsazure/jj554212.aspx.
      --
      where can I find that custom query, and how exactly do I run that against the DB
      Thanks in advance.