Reverse Geocoding and Geofencing

Hi,

I have one GPS-Tracing platform.

I’m use OSM Geocoder.

My question is what can I do to show the Markers instead of addresses?

Here you can see PHP file

<? $gsValues = array(); include ('../../config.custom.php'); if(@$_GET['cmd'] == 'latlng') { $result = ''; $lat = $_GET["lat"]; $lng = $_GET["lng"]; $url = '[http://nominatim.openstreetmap.org/reverse?email=](http://nominatim.openstreetmap.org/reverse?email=)'.$gsValues['EMAIL'].'&format=json&lat='.$lat.'&lon='.$lng.'&zoom=18&addressdetails=1'; $data = @file_get_contents($url); $jsondata = json_decode($data,true); if (isset($jsondata['address']['place'])) { $result .= $jsondata['address']['placea'].', '; } if (isset($jsondata['address']['road'])) { $result .= $jsondata['address']['road'].', '; } if (isset($jsondata['address']['city'])) { $result .= $jsondata['address']['city'].', '; } if (isset($jsondata['address']['"state_district'])) { $result .= $jsondata['address']['"state_district'].', '; } if (isset($jsondata['address']['postcode'])) { $result .= $jsondata['address']['postcode'].', '; } if (isset($jsondata['address']['country_code'])) { $result .= strtoupper($jsondata['address']['country_code']).', '; } $result = substr($result, 0, -2); echo json_encode($result); } if(@$_GET['cmd'] == 'address') { $result = array(); $search = htmlentities(urlencode($_GET["search"])); $url = '[http://nominatim.openstreetmap.org/search?q='.$search.'&format=json&polygon=0&addressdetails=1](http://nominatim.openstreetmap.org/search?q=.$search.&format=json&polygon=0&addressdetails=1)'; $data = @file_get_contents($url); $jsondata = json_decode($data,true); if(is_array($jsondata)) { for ($i=0; $i $address, 'lat' => $lat, 'lng' => $lng); } } echo json_encode($result); } ?>