Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Satya 10 posts 28 karma points
    Mar 18, 2015 @ 11:55
    Satya
    1

    How to implement Google Map nearest location based on current location

    Hi,

    I want to implement the Google Map nearest location based on current location in my project. Please help me if anyone knows about on this.

    Example: In my city many icici banks are there, i want nearest icici bank location at my position.

    Satya

  • John Churchley 272 posts 1258 karma points c-trib
    Mar 18, 2015 @ 12:22
    John Churchley
    0

    Is this client side? I assume you mean getting the location through an input field or Geolocation (http://www.w3schools.com/html/html5_geolocation.asp). Create an array of store locations and use google maps api to plot the nearest to your location (https://developers.google.com/maps/documentation/webservices/). Hopefully these links will get you started :)

     

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Mar 18, 2015 @ 17:38
    Jan Skovgaard
    1

    Hi Satya

    You can perhaps make use of the Google Distance Matrix stuff here https://developers.google.com/maps/documentation/distancematrix/ as well?

    /Jan

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies