How to get customer positioning on the map?

Asked

Viewed 121 times

3

I can only get the client’s approximate location, but is there a way I could locate him on a map, with this data I have? I can only get location data such as city, state, latitude, longitude etc. With that website and that code:

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

    The answer is YES, because we know there are ways to do this :-s. Be more specific, present the code and its difficulties, so we can help.

  • 1

    The question is extremely lacking in detail, advice, edit and make it as clear as possible, describing in detail what you want. Or it can be closed, the theme is interesting, but the question itself left much to be desired in the way it was presented.

  • https://developers.google.com/maps/documentation/javascript/examples/marker-simple

1 answer

1

Yes, it is possible to display customers on a map, at the exact location, in several different ways.

What is not clear is if you have the latitude and longitude data of your customers or not. If you have, you can.

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

Browser other questions tagged

You are not signed in. Login or sign up in order to post.