Getting your geographical location

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • rpupkin77

    Getting your geographical location

    Hey,

    How does one going about their user's geographical location? Is that
    even a PHP question.

    For example, a site may say "Find others near Boston", but if you were
    in New York, it would say "Find others in New York"

    Thanks.
  • Leigh Finch

    #2
    Re: Getting your geographical location

    rpupkin77 wrote:
    Hey,
    >
    How does one going about their user's geographical location? Is that
    even a PHP question.
    >
    For example, a site may say "Find others near Boston", but if you were
    in New York, it would say "Find others in New York"
    >
    Thanks.
    Hi,
    Not really a PHP question, but I've used maxminds geoip product and it
    is quite good.



    This document tells you the various methods of how to use PHP with it.

    --
    Hope this helps, Cheers
    Leigh Finch

    Comment

    • virtuPIC

      #3
      Re: Getting your geographical location

      If you are really clever you could also ask 'whois' and parse the
      reply. I think that's how MaxMind and others have built their
      databases. Here you get the most current and most precise information
      available via net infrastructure.

      But be cautios: The problem I had with MaxMind's database was that of
      many users connected via ISP I only got the ISP's location which
      frequently is a few hundred miles away. From my current office in
      Germany I am connected to the net via Italy giving me Italian Google
      search pages...

      virtuPIC
      --
      Airspace V - international hangar flying!
      http://www.airspace-v.com/ggadgets for tools & toys

      Comment

      • C. (http://symcbean.blogspot.com/)

        #4
        Re: Getting your geographical location

        On 13 Aug, 07:18, virtuPIC <WebMas...@airs pace-v.comwrote:
        If you are really clever you could also ask 'whois' and parse the
        reply. I think that's how MaxMind and others have built their
        databases. Here you get the most current and most precise information
        available via net infrastructure.
        >
        But be cautios: The problem I had with MaxMind's database was that of
        many users connected via ISP I only got the ISP's location which
        frequently is a few hundred miles away. From my current office in
        Germany I am connected to the net via Italy giving me Italian Google
        search pages...
        >
        virtuPIC
        --
        Airspace V - international hangar flying!http://www.airspace-v.com/ggadgetsfor tools & toys
        I'd also question the usefulness of IP address to geography mappings.
        The easiest way to find out where a user is would be to **ask** them!
        Of course, most users tend to think in terms of towns/cities and
        countries rather than lattitude and longitude - and you'd want the
        results in a strucutred format - which rather suggests clicking on
        selection criteria rather than free text input.

        IIRC the phpclassess website does geographical data manipulation to
        find local user groups. Also, The CIA World Fact Book data seems to
        published on a redistributable basis - although getting hold of the
        raw data & metadata might be tricky. There may well be published
        public listings of cities in the world - try google for a start. If
        that trail goes cold, try chasing up from micro-formats and/or Mozilla
        labs (who are actively looking at pushing data manipulation out to the
        browser).

        C.

        Comment

        Working...