Category : google-distancematrix-api

https://maps.googleapis.com/maps/api/distancematrix/json?units=metric&origins=Neuh%C3%B6fer+Damm+110,Germany&destinations=Vogelweide+8,Hamburg&key=YOUR_API_KEY The API Key is having the distance matrix API linked to it. If you use your own key, you will see the request in the browser working properly. However, the moment you make an HTTP::get(<>) in the code it returns you 404. Currently, I’m using PHP Laravel and follow the documentation. Here is the ..

Read more

alert(getDistanceFromLatLonInKm($(‘[name="showp"]’).val(),$(‘[name="showp"]’).val()).toFixed(1)); should pass value something like this alert(getDistanceFromLatLonInKm(31.5952599,74.3526989,59.3293371,13.4877472).toFixed(1)); i have 2 input fields 1 input field is use to get user current location(latlong) and 2nd input is stored in db(lat long) <input type="text" placeholder="Enter Cordinates Only" name="location_url_ot"> <input type="text" value="{{ $customer->customer->location_url }}" name="showp" > using this code i am geting user curent location function getLocation() ..

Read more