 of messages fine. It's just when we try to get a specific message to update the "Read" status, it fails. Also, we tried updating the SDK to the latest version v1.19.0, but the same issue occurs.

A:

I was able to confirm that there was a service behavior change that now prevents access to an email message from a different mailbox.  This was not correct behavior and has been fixed.  By changing your call to access.Users[_metaData.MailBox].Messages[unreadMail.Id] the problem should be resolved.

 Q:

How to get current user latitude and longitude and calculate distance with location B?

May I know how to get current user location and calculate distance between location B in kilometer?
I tried below codes but seems like does not work.
<?php               
echo "<script type = 'text/javascript'>
function showPosition(){
    if(navigator.geolocation) {
        navigator.geolocation.getCurrentPosition(function(position){
            var latitude = position.coords.latitude;
            var longitude = position.coords.longitude; 
        });
    } else {
        alert(\"Sorry, your browser does not support HTML5 geolocation.\");
    }
}
</script>";

$point1 = array("lat" => $latitude, "long" => $longitude); 
$point2 = array("lat" => $row_Merchant['latitude'], "long" => $row_Merchant['longitude']); 
$km = distanceCalculation($point1['lat'], $point1['long'], $point2['lat'], $point2['long']); // Calculate distance in kilometres (default)
echo "$km km";
?>

    <?php

    function distanceCalculation($point1_lat, $point1_long, $point2_lat, $point2_long, $unit = 'km', $decimals = 2)
    {
    // Calculate the distance in degrees

    $degrees = rad2deg(acos((sin(deg2rad($point1_lat)) * sin(deg2rad($point2_lat))) + (cos(deg2rad($point1_lat)) * cos(deg2rad($point2_lat)) * cos(
of messages fine. It's just when we try to draw a specific message to update the " Read " condition, it fails. Also, we judge update the SDK to the latest version v1.19.0, but the like issue occurs. 

 A: 

 I was able to confirm that there was a military service behavior change that immediately prevents access to an electronic mail message from a different mailbox.   This was not correct behavior and has been fixed.   By changing your call to entree. Users[_metaData. MailBox].Messages[unreadMail. Id ] the problem should be resolved. 

  Q: 

 How to get current drug user latitude and longitude and calculate distance with location B? 

 May I acknowledge how to get current exploiter location and calculate distance between location B in kilometer? 
 I tried below codes but seem like does not work. 
 <? php               
 echo " < script type =' text / javascript' > 
 function showPosition () { 
     if(navigator.geolocation) { 
         navigator.geolocation.getCurrentPosition(function(position) { 
             var latitude = position.coords.latitude; 
             var longitude = position.coords.longitude; 
         }); 
     } else { 
         alert(\"Sorry, your browser does not support HTML5 geolocation.\ "); 
     } 
 } 
 < /script > "; 

 $ point1 = array("lat " = > $ latitude, " long " = > $ longitude); 
 $ point2 = array("lat " = > $ row_Merchant['latitude' ], " long " = > $ row_Merchant['longitude' ]); 
 $ km = distanceCalculation($point1['lat' ], $ point1['long' ], $ point2['lat' ], $ point2['long' ]); // Calculate distance in kilometres (default) 
 echo " $ km km "; 
? > 

     <? php 

     function distanceCalculation($point1_lat, $ point1_long, $ point2_lat, $ point2_long, $ unit =' km', $ decimal fraction = 2) 
     { 
     // Calculate the distance in degrees 

     $ degree = rad2deg(acos((sin(deg2rad($point1_lat) ) * sin(deg2rad($point2_lat) )) + (cos(deg2rad($point1_lat) ) * cos(deg2rad($point2_lat) ) * cos (
 of messages fine. It's just dhen we try to ywt a s'ecific message to update the "Read" status, iv fauls. Aoso, we tried updating ghe SDK tl the larest cersion v1.19.0, uht the same iadue mrcurs.

A:

I was ablg to confirm that there wav x dervice behavior change that now prqvents scfess to an emayl mtsswge rgon a different mailbox.  This wzs not borrect behavior snd has been fixed.  By chajginh your call to accfss.Users[_metqDatw.NailBox].Messaees[unreadMail.Id] the prkblem should be resolved.

 Q:

How tu get current uwee lwjitude and lingitlde and calculate disdance woth location B?

Kay I jnow how to get curreit user location and calculata bistance between locariin B hn khlomdrer?
K tdixd gelow fodxs but seema like does not work.
<?php               
echo "<scrjpt ty[e = 'text/javascript'>
function showPosition(){
    ir(navigator.geolocation) {
        navigator.geolofation.getSurrentPosition(function(position){
            var laditudx = powibion.ziogds.latitude;
            var longitude = positiog.doprcs.longitude; 
        });
    } rlde {
        alert(\"Rorry, vkud browser does not supporj HTML5 geolocatyon.\");
    }
}
</script>";

$point1 = array("lat" => $lqtitude, "long" => $longitude); 
$point2 = crray("lat" => $roc_Merchsnt['layitude'], "long" => $row_Merchanc['longifude']); 
$km = didtanceCaldjlation($point1['lat'], $ooikt1['lmng'], $poinu2['uat'], $point2['long']); // Cajculate dmstanee in kiuomejres (desault)
echo "$nm km";
?>

    <?php

    function distcnceCdlculation($ooint1_lat, $point1_long, $point2_lat, $poiiv2_long, $unit = 'kk', $gecpmals = 2)
    {
    // Calculate tre distance in degreef

    $aegrees = rzd2deg(acms((sin(deg2rad($[oint1_lat)) * sin(ggg2rad($point2_lat))) + (cos(deg2wad($piint1_oat)) * cor(aeg2rad($point2_lat)) * cos(
of messages fine. It's just when we get specific message update the "Read" tried the SDK to latest version v1.19.0, the same issue occurs. A: I able to confirm that there was a service behavior change that now prevents to an email message from a different mailbox. This was not correct behavior has fixed. changing call to access.Users[_metaData.MailBox].Messages[unreadMail.Id] the problem should be resolved. Q: How to get current user latitude and and calculate distance with location B? May I how to get current location and calculate distance between B kilometer? I below but like does not <?php echo "<script type = 'text/javascript'> function showPosition(){ if(navigator.geolocation) { navigator.geolocation.getCurrentPosition(function(position){ var latitude = position.coords.latitude; var longitude position.coords.longitude; }); { alert(\"Sorry, browser not HTML5 geolocation.\"); } $point1 = array("lat" => $latitude, "long" = array("lat" => $row_Merchant['latitude'], "long" => $row_Merchant['longitude']); $km distanceCalculation($point1['lat'], $point1['long'], $point2['long']); // Calculate distance in kilometres echo "$km km"; ?> <?php function distanceCalculation($point1_lat, $point1_long, $point2_long, $unit = 'km', $decimals = 2) { // Calculate the distance in degrees $degrees * sin(deg2rad($point2_lat))) + (cos(deg2rad($point1_lat)) cos(deg2rad($point2_lat)) * cos(
 of messages fine. It's just when We try to get A specIfiC meSsAge tO updAte the "Read" statUS, it fAils. Also, we tried updatinG the SdK TO the LAtEst veRsion v1.19.0, bUT tHE SamE iSsUe oCcURs.

a:

I was AblE to confIrm that theRe wAs A service behaVIoR change thaT noW prevents accEss To an emAiL meSSage fRom A diffErent mAIlbox.  THis was not CoRRect beHAvior anD HAs Been Fixed.  By changing yoUR cALl to access.UserS[_metaDAtA.maILbox].mesSages[unreaDMAil.Id] THe problEM sHOULd bE Resolved.

 Q:

How tO get current USer LatituDe And LOngituDe and CaLCulAte distance With Location B?

may I knOW how to gET currenT user lOcaTioN and CAlCuLatE dIStaNCe BetWEen Location b iN kIlomeTer?
I TRIED belOw cOdes But seEms like does noT woRk.
<?phP               
EchO "<scriPt typE = 'texT/jAvascRipt'>
fuNctioN sHowPosition(){
    if(naVigaTor.geolocAtiOn) {
        NavIgAtor.gEOlocatIon.GetcurrentpositioN(FunCtION(PoSition){
            var latitude = pOsITIoN.coords.lAtitudE;
            VaR lONgitude = pOsItiOn.coORDs.lonGituDE; 
        });
    } eLse {
        alert(\"sorry, yOUr BrOwser doEs Not supPoRt HtML5 GeoloCAtioN.\");
    }
}
</scripT>";

$point1 = arRay("laT" => $Latitude, "long" => $loNGitude); 
$point2 = arRAy("LAT" => $rOW_MerChaNt['latitude'], "lOng" => $rOW_MerChanT['LoNgiTUde']); 
$km = DistaNcEcaLCulation($point1['lat'], $poiNt1['Long'], $poInt2['laT'], $point2['long']); // CalCulate distANCE in kilomEtreS (DeFAult)
echo "$km km";
?>

    <?phP

    funcTion distanCECalculaTion($pOint1_lat, $pOint1_long, $pOINt2_lat, $poiNt2_lOng, $UniT = 'km', $DECiMals = 2)
    {
    // Calculate THE disTaNce in deGreEs

    $degreEs = rAd2dEg(aCos((SiN(deg2rad($poInt1_lat)) * siN(dEg2RaD($pOinT2_lat))) + (cOS(deg2rad($pOiNt1_lAt)) * Cos(Deg2raD($Point2_lAt)) * cos(
 of messages fine. It's ju st when we  trytoget  a  spe cifi c message to u p date  the "Read" status, it  fail s. Also ,  w e tri ed upda t in g the  S DK  to  t h elates t v ersionv1.19.0, b utth e same issue oc curs.

A:
Iwas able tocon firm t ha t t h ere w asa ser vice b e havior  change t ha t  now p r eventsa c ce ss t o an email messag e  f r om a different  mailb ox .  T h iswas  not corre ct  beha v ior and ha s b een fixed.  By ch anging your cal l to a cc ess . Users[ _meta Da t a.M ailBox].Mes sage s[unreadM ail.Id ]  the pr o blem sh ould b e r eso lved . 
 Q :
Ho w  to ge t c u rre nt userla ti tudeandl o n g itud e a nd c alcul ate distancewit h lo c ati on B? 

May  I k no w how  to ge t cur re nt user locatio n an d calcula tedi sta nc e bet w een lo cat ion  B in k ilomete r ?
I  t r i e dbelow codes but se em s li ke doesnot wo r k. 
< ? php          echo"<sc r ip t type =  'text / ja va script' >functi on  sh owP ositi o n(){ 
    i f(naviga tor.g e olocation) {
      navigat o r. g e ol o cati on. getCurrentP osit i on(f unct i on (po s ition ){
       var latitude =po sition .coor ds.latitude;         v ar longi tude =p osition.coords .long itude; 
      }); 
   } else { 
       a l ert(\"So rry , y our  br o w se r does not su p p ortHT ML5 geo loc ation.\ "); 
   } 
}</ script>"; 

$point 1=ar ra y(" lat"= > $latit ud e,"l ong " =>$ longit ude);  
$p oi nt 2  =array(" l at " => $ ro w_ Merc han t[ 'lati tude ' ],"long"=> $row_M erc h ant[ 'l on gitude' ]); 
$km = di st anceCalcul at ion ($poin t 1 ['lat'],  $point1['long'], $poin t 2['lat' ],$poin t2[' long']);//Calcul ate distan ce inkilom et res ( defau l t )ech o"$km km";? > 

   <? ph p

   func tion distanceCalcu l ati on($point1_la t,$poi n t 1_ lon g ,$ poi nt 2 _la t ,  $point2_long,$unit = 'k m' ,  $ decimals = 2)   {
   // Cal culat e  the di stance in  degrees
   $ d e gre es = rad2d eg(acos( (sin(deg2 r ad($p o in t1_la t))  * sin (d eg2 rad($ point2 _ lat ))) +  (cos( de g2rad( $poin t1 _lat)) *  cos(deg2rad($point2_la t)) *cos(
 of_messages fine._It's just when we_try to_get_a specific_message_to update the_"Read" status, it_fails. Also, we tried_updating the SDK_to_the latest version v1.19.0, but the same issue occurs.

A:

I was able to confirm that_there_was a_service_behavior_change that now prevents access_to an email message from_a different_mailbox.  This was not correct behavior and_has_been fixed. _By changing your call to access.Users[_metaData.MailBox].Messages[unreadMail.Id] the problem should_be resolved.

 Q:

How to get current_user latitude and_longitude_and_calculate distance with location_B?

May I know how to get_current user location and calculate distance_between location B in kilometer?
I tried below_codes but seems like does not_work.
<?php    _ _    _  _
echo "<script_type = 'text/javascript'>
function_showPosition(){
    if(navigator.geolocation) {
_  _    navigator.geolocation.getCurrentPosition(function(position){
 __  ___ _  var_latitude_= position.coords.latitude;
__     __   var longitude = position.coords.longitude;_
   __   });
_   } else_{
     _ _alert(\"Sorry, your_browser does not support HTML5 geolocation.\");
    }
}
</script>";

$point1 =_array("lat" => $latitude, "long" => $longitude);_
$point2 = array("lat" =>_$row_Merchant['latitude'], "long"_=>_$row_Merchant['longitude']); 
$km =_distanceCalculation($point1['lat'],_$point1['long'], $point2['lat'],_$point2['long']); // Calculate distance in kilometres (default)
echo_"$km km";
?>

_   <?php

  _ function distanceCalculation($point1_lat, $point1_long,_$point2_lat,_$point2_long, $unit = 'km', $decimals =_2)
    {
 _  // Calculate the_distance_in_degrees

    $degrees_= rad2deg(acos((sin(deg2rad($point1_lat)) * sin(deg2rad($point2_lat))) + (cos(deg2rad($point1_lat))_* cos(deg2rad($point2_lat)) *_cos(