facebook

JQuery Array, current location

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MobiOne Archive
  2.  > 
  3. Getting Help – General
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #349098 Reply

    AntonP
    Member

    New to Mobione and JQuery.

    I can get my current location, but need to determine which store is closest to my current location from the array. ONce store is found i need to use the storenum, to contact the store with the onclick “dial phone”option.

    myStoreArray: (
    {
    StoreName = StoreName1;
    Latitude = “-26.01672”;
    Longitude = “28.127379”;
    StoreNum = “0113675700”;
    },
    {
    StoreName = StoreName2;
    Latitude = “-26.018744”;
    Longitude = “28.007777”;
    StoreNum = “0115535800”;
    },
    )

    #349106

    support-michael
    Keymaster

    Extending your app to use more sophisticated geofencing search is doable using the google maps api https://developers.google.com/maps/documentation/javascript/

    You may also want to search for alternative gis service that may have a more acceptable terms of use.

    PLEASE be aware of the terms of use by any 3rd party library and services your project is dependent upon.

    #349145

    Hı AntonP,

    Using google.maps.geometry.spherical library, it is possible to calculate distances between any two points:

    distBetweenPoints = (google.maps.geometry.spherical.computeDistanceBetween(loc1LatLng, loc2LatLng ))

    You can find usage details at: https://developers.google.com/maps/documentation/javascript/geometry

    Hope it helps.

    Turgut

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: JQuery Array, current location

You must be logged in to post in the forum log in