Posts

Showing posts with the label google-maps

Draggable and Record Marker Location Google Map Api

Draggable and Record Marker Location Google Map Api here I have a map, in my map, I want to make a marker there can be draggable. When i drag and drop the marker i want it make a record or just change my value of my input. here my script : var iconBase = 'https://maps.google.com/mapfiles/kml/shapes/'; var icons = { parking: { icon: iconBase + 'parking_lot_maps.png' }, library: { icon: iconBase + 'library_maps.png' }, info: { icon: iconBase + 'info-i_maps.png' } }; var locations = [ ['location 1', -33.80010128657071, 151.28747820854187, 2,"info"], ['location 2', -33.950198, 151.259302, 1,"info"] ]; var map = new google.maps.Map(document.getElementById('map'), { zoom: 11, center: new google.maps.LatLng(-33.92, 151.28747820854187), mapTypeId: google.maps.MapTypeId.ROADMAP }); var infowindow = new google.maps.InfoWindow(); var marker, i;...

Geocoding api google

Geocoding api google I am sending the same query (url) of geocoding API and it returns me different answers. Thanks for you help. https://maps.googleapis.com/maps/api/geocode/json?key={mykey}&address=Bristol%209431,%20La%20Florida,%20Chile This happens from different servers. When I send the query from one of the servers, the answer is: results :La Florida, Santiago Metropolitan Region, Chile location_type : APPROXIMATE when I send from my laptop, the answer is: results : Bristol 9431, La Florida, Región Metropolitana, Chile location_type" : ROOFTOP This likely means that data is not synchronized between different data centers at Google. – xomena 12 hours ago By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, ...