PHP Classes

What is the best PHP ip to latitude longitude class?: Given IP address return latitude longitude

Recommend this page to a friend!
  All requests RSS feed  >  What is the best PHP ip to latitude l...  >  Request new recommendation  >  A request is featured when there is no good recommended package on the site when it is posted. Featured requests  >  No recommendations No recommendations  

What is the best PHP ip to latitude longitude class?

Edit

Picture of Vitor Rodrigues by Vitor Rodrigues - 9 years ago (2015-05-24)

Given IP address return latitude longitude

This request is clear and relevant.
This request is not clear or is not relevant.

+2

I need a class that for a given IP it will return the latitude and longitude coordinates, the region, the city, the country, the county, etc..

Some one already create a class like this but it doesn't work. I am the second person complain that the class doesn't work the first was some one call Joe.

  • 1 Clarification request
  • 1. Picture of Dave Smith by Dave Smith - 9 years ago (2015-05-24) Reply

    After re-reading the request, you are actually looking for a geo locator and not a geocoder. For a geo locator, I would look at this one...

    http://www.phpclasses.org/geoplugin

    Dave

    Ask clarification

    3 Recommendations

    Very Simple IP Details: Get IP address location and Google Maps image

    This recommendation solves the problem.
    This recommendation does not solve the problem.

    +1

    Picture of zinsou A.A.E.Moïse by zinsou A.A.E.Moïse package author package author Reputation 5850 - 7 years ago (2017-08-20) Comment

    new requesters could try this, it is simple and it works fine...


    IP2Location PHP Module: Get geographical details of an IP with IP2Location

    This recommendation solves the problem.
    This recommendation does not solve the problem.

    +3

    Picture of Manuel Lemos by Manuel Lemos Reputation 23985 - 9 years ago (2015-05-28) Comment

    The problem of those packages that stop working is that they rely on Web services that are no longer available.

    An alternative solution is to use a package that can use a IP database file, so you can download and use locally.

    This class implements that approach using a free IP2Location database. You will need to download it the database file now and probably later periodically, so you can use an updated IP database.


    Simple GMap API: Display maps and get location with Google Maps API

    This recommendation solves the problem.
    This recommendation does not solve the problem.

    -1

    Picture of Dave Smith by Dave Smith Reputation 6845 - 9 years ago (2015-05-24) Comment

    There are a lot of geocoders available using google API's, however google changes their API's frequently. The latest version is V3 and any classes uses older versions will not work.

    I would try this one first. While it mainly is for displaying mapped locations, it uses V3 and has a geocoder that you can use to get the additional information you are after.

    Dave 

    • 1 Comment
    • 1. Picture of Manuel Lemos by Manuel Lemos - 9 years ago (2015-05-28) Reply

      Yes, Dave, as you realized that was not really what was asked.


    Recommend package
    : 
    :