title: How to get KML or JSON data of (polygon) area using Google Map URL using JS or PHP
body: <p>I would like get the KML or JSON data for the red polygon (as far as I know it's called polygon) area. I want to display the area in a custom map of my application and I will place some markers within this area. </p>
  
  <p>You can check this example: <a href="https://goo.gl/maps/7SIeg" rel="nofollow noreferrer">https://goo.gl/maps/7SIeg</a></p>
  
  <p><img src="https://i.stack.imgur.com/LpzZV.png" alt="enter image description here"></p>
  
  <p>I just need to grab the KML or JSON object of the co-ordinates the red marked area.</p>