Null reference exception RRS feed

  • Question

  • I want to get the selected item latitude and longitude values for that I am write the code like below

    doublelat1 = selecteditem.geometry.location.lat; 

    doublelng1 = selecteditem.geometry.location.lng;

    if I write like above it show the null reference exception for this any solutions is there


    Sateesh .B

    Tuesday, October 13, 2015 12:13 PM


All replies

  • You can use WHERE clause expression to filter on angular distance from an origion.

    SELECT ... FROM ...

        WHERE (Latitude-x0)*(Latitude-x0) + (Longitude-y0)*(Longitude-y0) < r*r;

    Tuesday, October 13, 2015 12:18 PM
  • thanks for your replay Rihann

    Tuesday, October 13, 2015 1:15 PM
  • Off-topic for this forum, please aks this in the correct (MSDN) Foru

    Monday, November 30, 2015 11:47 AM