A website I’m running maintenance on filters locations by latitude / longitude – now they want it to filter zips. I am not a backend, and don’t have a lot of time between other projects, so I’m in dire need of help in understanding – I’ll take anything you got. $locations = $wpdb->get_results($sql,ARRAY_A); case ‘zip’: ..
Category : google-maps
I am looking for funtionality like [Zip codes from user defined area][1] [1]: https://i.stack.imgur.com/k1b3l.png Where visitor can draw polygons and get list of all the zip codes within the polygon. I want this feature to be in my own website. can I do this with google maps API. Can someone help me to sort out ..
I have mobile app which is in vue and ionic. Other is web app which is in laravel and jquery. Now I want to share mobile phone location on website how I can achieve that . I am confused how google will tell website where mobile phone user is? Sourc..
I’m new to programming and new to the page, so I still don’t understand the rules well. I generated buttons with 10 addresses from the database, use a geocoder to show them on the map when pressing the button it shows me the address in order of id with its respective button, it worked fine, ..
I need to get google street view image of the property by passing property address. Please suggest laravel/php package to get this objective. Sourc..
I’m trying to populate a google map with a list of long/lat from a JSON file and having this issue, any help would be greatly appreciated! [Error] SyntaxError: Cannot declare a const variable twice: ‘map’. [Error] Unhandled Promise Rejection: InvalidValueError: initMap is not a function <!– Async script executes immediately and must be after any ..
From the Google Places API I get an array with this structure: Array ( [result] => Array ( [address_components] => Array ( [0] => Array ( [long_name] => 1 [short_name] => 1 [types] => Array ( [0] => street_number ) ) [1] => Array ( [long_name] => Theaterplatz [short_name] => Theaterpl. [types] => Array ( ..
I am adding markers to a google map API on my site. I would like to do iterate through the data using a simple PHP loop retrieving the data from a MySQL database. Within my .js file currently I have the following code to populate the data for the markers. markersData = { ‘Marker’: [ ..
I have a problem with the polylines and addresses, what happens is that these are generated well, but in a bad way. Let me explain with an example: let’s have a point A, B and C; where the polyline is generated en route from a to B, then from B to C and also generates ..
”’ <form action="" method="post"> <label>Origin:</label> <input type="text" name="o" placeholder="Enter Origin location" required> <br><br> <label>Destination:</label> <input type="text" name="d" placeholder="Enter Destination location" required> <br><br> <input type="submit" value="Calculate distance & time" name="submit"> <br><br> </form> <?php $con = mysqli_connect("localhost","root","","buspass"); if(isset($_POST[‘submit’])){ $origin = $_POST[‘o’]; $destination = $_POST[‘d’]; $api = file_get_contents("http://maps.googleapis.com/maps/api/distancematrix/json? units=imperial&origins=".$origin."&destinations=".$destination."&key=YOUR_API"); $data = json_decode($api,true); ?> <label><b>Distance: </b></label> <span> <?php if(isset($_POST[‘elements’])){ ..