How do I get the client's position on the map?

3

I can only get the approximate location of the client, but would there be a way that I could locate it on a map, with that data I have? I only get location data such as 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']:'';
    
asked by anonymous 17.01.2017 / 01:15

1 answer

1

Yes, you can view customers on a map, in the exact location, in a number of different ways.

What was not clear is whether you have the latitude and longitude data of your customers or not. If you have, you can do it.

If you do not have these two data, it is impossible to display exactly where each client is.

    
25.01.2017 / 23:52