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']:'';
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.
– Rene Freak
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.
– Florida
https://developers.google.com/maps/documentation/javascript/examples/marker-simple
– Papa Charlie