solution more consistent than "MAX MIND geo" script for "CITY" location?

Discussion in 'Programming' started by AMFsound, Sep 28, 2010.

  1. #1
    hi roomates!

    I'm using "max mind geo" javascript for an "ip" city identifier
    (forgive my noob jargon)

    the problem is it is consistent, but not all the time, it may say
    to my sites visitor "welcome to Los Angeles"

    but the next time for the same visitor it might show a different city,
    still the same geo general area, but not the same city..

    and for what I'm doing it's really important that it be
    consistent...........

    anyone know of a solution more consistent ???

    ( i notice when I go to the site myself it usually shows
    the same city I'm near, but on occasion shows a different
    city, also in this same area, usually it shows one of the two,
    I don't even care which one but just so long as it's the same one!)


    thanks peepers!
    open to your suggestion

    AMF~
     
    AMFsound, Sep 28, 2010 IP
  2. AstarothSolutions

    AstarothSolutions Peon

    Messages:
    2,680
    Likes Received:
    77
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Use a cookie..... if the cookie exists then read the location from the cookie, if the cookie doesnt exist then get the city by the geo script and create a cookie with the city in it.

    I don't know for the USA but certainly in the UK geolocation scripts are terribly unreliable as almost all companies are national and so have only a few (if not only 1) places IPs are registered to (my City has never been anything other than London even though I have never lived in London). Hell, even country isn;t always correct given the way that some international organisations do their infrastructure
     
    AstarothSolutions, Sep 30, 2010 IP