Want to get the Exact Location of the visitor of the website

Discussion in 'PHP' started by salmanshafiq, Sep 28, 2014.

  1. #1
    Hi All,

    I want to get the exact location of visitor of the website. Google GEOLocation provide the location of the ISP provide through IP but I want the exact location .. Is there any way to get that?

    Thanks in advance...
     
    salmanshafiq, Sep 28, 2014 IP
  2. billzo

    billzo Well-Known Member

    Messages:
    961
    Likes Received:
    278
    Best Answers:
    15
    Trophy Points:
    113
    #2
    You have to ask them. No ISP is going to give you a visitor's home address. A mobile device can be different as the device may be able to pinpoint a GPS location. You can attempt to do that with javascript which will then present a prompt to a user asking them if they wish to disclose their location, which they can decline.

    As a side note, the Google locator is often many miles away from where I am. It may be used to locate a general metropolitan area, but it is not much good beyond that.
     
    billzo, Sep 29, 2014 IP
  3. Anveto

    Anveto Well-Known Member

    Messages:
    697
    Likes Received:
    40
    Best Answers:
    19
    Trophy Points:
    195
    #3
    You can use maxmind to get the most accurate location https://www.maxmind.com/en/geoip2-services-and-databases (Free and paid)

    But for most ip's you won't get any closer than the possible city the user is from which is not always accurate as it may be the ISP's city.

    If you want an exact location you will need to contact the ISP and will most likely require police or government involvement in order to get an address, name, etc.
     
    Anveto, Sep 29, 2014 IP
  4. salmanshafiq

    salmanshafiq Well-Known Member

    Messages:
    260
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    128
    #4
    Is there any device available which I asked my visitors to use so website automatically get the exact location?
     
    salmanshafiq, Sep 29, 2014 IP
  5. Anveto

    Anveto Well-Known Member

    Messages:
    697
    Likes Received:
    40
    Best Answers:
    19
    Trophy Points:
    195
    #5
    You could make an app and use geolocation to get the visitors Geolocation, it will give pretty accurate coordinates. Then the app could send that to the website.
     
    Anveto, Sep 29, 2014 IP
  6. PoPSiCLe

    PoPSiCLe Illustrious Member

    Messages:
    4,623
    Likes Received:
    725
    Best Answers:
    152
    Trophy Points:
    470
    #6
    Another possibility, if this is meant to be used in a limited geographical area, is to distribute RFID-tags (or NFC, or similar items), which users can connect to to provide a location. This would however limit the areas where you could get accurate information.
    In general, getting this information without the user's explicit consent is neigh impossible.
     
    PoPSiCLe, Sep 29, 2014 IP
  7. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
  8. salmanshafiq

    salmanshafiq Well-Known Member

    Messages:
    260
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    128
    #8
    It's only possible if we have any GPS Device .. is there any GPS device available for System?
     
    salmanshafiq, Sep 29, 2014 IP
  9. PoPSiCLe

    PoPSiCLe Illustrious Member

    Messages:
    4,623
    Likes Received:
    725
    Best Answers:
    152
    Trophy Points:
    470
    #9
    Let's see if we can make this clear: you.cannot.get.exact.location.from.a.user!
     
    PoPSiCLe, Oct 1, 2014 IP
  10. brealmz

    brealmz Well-Known Member

    Messages:
    335
    Likes Received:
    24
    Best Answers:
    3
    Trophy Points:
    138
    #10
    to my understanding if your visitor is using smart phone with gps on, with visitor consent, you can exactly locate it using google geolocation api.
    without gps you can at least get the correct administrative area from the IP using geolocation services
     
    brealmz, Oct 1, 2014 IP
  11. salmanshafiq

    salmanshafiq Well-Known Member

    Messages:
    260
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    128
    #11
    Yes I got the ISP provider location through GEO Code and I understand there is no-way for the system to get the exact location... thanks for your help...
     
    salmanshafiq, Oct 2, 2014 IP