title: Location based GET and POST API's for java spring boot application
body: <p>For the app side I want to create a API for posting a product. Also I want to display the product in web site based on the location where the user browsing. What is the proper way to approach this scenario.</p>
  
  <p>My thoughts are (pardon me if am wrong):</p>
  
  <ol>
  <li><p>Get location (latitude and longitude) from google map and save those data in DB while posting the product, when displaying in web site get location of the device (allow location on device) and display the result from DB according to the coordinates of the device location.</p></li>
  <li><p>Get the IP address of the posting device and find the location and get district (like nearby district or state) then post the field(district) into DB, when displaying in website get the device IP address and find the location (district or state) and match those data and filter the result from database. </p></li>
  </ol>