1.9.0 • Published 2 years ago

@ahmadlamber/getnearestlatitudeandlongitudefromarray v1.9.0

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

��## Install

npm i @ahmadlamber/getnearestlatitudeandlongitudefromarray

Usage

import GetnearestLatitudeandLongitudefromarray from '@ahmadlamber/getnearestlatitudeandlongitudefromarray'

Functions and Example

 array = [ {
    "timestampMs" : "1389633689564",
    "latitudeE7" : 4233738877,
    "longitudeE7" : 1066510714,
    "accuracy" : 20
  }, {
    "timestampMs" : "1446040136103",
    "latitudeE7" : 3974349226,
    "longitudeE7" : 1157765074,
    "accuracy" : 1212
  }, {
    "timestampMs" : "1502203327757",
    "latitudeE7" : 4094251339,
    "longitudeE7" : 3728135318,
    "accuracy" : 16
  } ]  ; 

var ponit = {
  "latitudeE7" : 4094251339,
    "longitudeE7" : 3728135318,
} 

  var  ruslt = GetnearestLatitudeandLongitudefromarray(array ,ponit  )

// {
//     "Minimumdistanceinklm": 0,
//     "lat": 4094251339,
//     "lng": 3728135318
// }
1.9.0

2 years ago

1.8.0

2 years ago

1.7.0

2 years ago

1.6.0

2 years ago

1.5.0

2 years ago

1.3.0

2 years ago