title: How to get the coordinates of the user clicking on a map object in UWP?
body: <p>I am creating an app in UWP that makes heavy use of the built-in MapControl object to display icons and images. My next functionality in the app will require extracting the gps location of where the user clicks on the map to edit the location of a map icon. So, the user uses their mouse (or finger) to click on the map at a certain location, I need a tapped event to fire which knows the geolocation of the click. I do not which API I should be looking into.</p>
  
  <p>I know it has to be posible, the windows 10 included maps app determines the address of any location you click on. How do I implement a similar functionality?</p>
  
  <p>Mock code...</p>
  
  <p>xaml:</p>
  
  <pre><code>&lt;Maps:MapControl x:Name="map_main" Loaded="MapLoaded" MapTapped="MapUserTapped"/&gt;
  </code></pre>
  
  <p>c#:</p>
  
  <pre><code>private void MapUserTapped(MapControl sender, MapInputEventArgs args)
  {
      if (!edit_mode) { return; }
  
      //no idea how to do this part, are there any api's for this?
      Geoposition geopos_edit_position = map_main.TapLocation;
  
      EditMapIconPosition(geopos_edit_position);
  }
  
  private void EditMapIconPosition(Geoposition geopos_edit_position)
  {
      ...
  }
  </code></pre>