title: How to take location data from Google Maps and store it in a database?
body: <p>I am building a website which have users, and users have profiles where they can edit their information. One of user's information elements is to enter their location based on a google map API that is going to be appeared in front of them. </p>
  
  <p>My question is: how can i take the location the user picked on the map and store it in the database? ("assuming that i already built the database and i got the longitude and latitude as inputs within user table ") </p>
  
  <p>i have added a picture which is a simple front-end illustration i have made to explain what i am trying to do.</p>
  
  <p><a href="https://i.stack.imgur.com/5zyHj.jpg" rel="nofollow noreferrer">front end example</a></p>