php – How to get the customer's placement on the map?

Question:

I can only get the approximate location of the client, but would there be a way that I could locate him on a map, with this data I have? I only get location data like City, State, Latitude, Longitude etc. With this site and this code:

   $query = @unserialize(file_get_contents('http://ip-api.com/php/'.$ip));
    $lat=isset($query['lat'])?$query['lat']:'';
    $lon=isset($query['lon'])?$query['lon']:'';

Answer:

Yes, you can display customers on a map, at their exact location, in a number of different ways.

What is unclear is whether you have latitude and longitude data for your customers or not. If so, you can do it.

If you don't have these two pieces of data, it's impossible to show exactly where each customer is.

Scroll to Top
AllEscort