Skip to content

Instantly share code, notes, and snippets.

@friedrich123
friedrich123 / jqPinMyLocation.js
Last active April 17, 2020 13:56
The script makes a google map, and you can pin with the mouse any location you want. the map then gets the new location(coordonates). my question is, how do i get the coordinates into php and onto db ? thanks very much.
(function( $ ) {
var geocoder = new google.maps.Geocoder();
var map = null;
var mapElement = null;
var settings = null;
var kharkivCoordinates = {
latitude : 49.99703128549135,
longitude:36.230383000000074
};