title: How to scrape GIS coordinates from a map (e.g. Pokevision) using python and selenium?
body: <p>I'd like to scrape PokemonVision so that I can get all the longitude and latitude coordinates of the Pokemon being displayed. </p>
  
  <p>The URL of the webpage contains the longitude and latitude of the flag marker . For example the following url contains 39.95142302373031,-75.17986178398132: <a href="https://pokevision.com/#/@39.95142302373031,-75.17986178398132" rel="nofollow">https://pokevision.com/#/@39.95142302373031,-75.17986178398132</a></p>
  
  <p>In the <a href="http://codepen.io/chriscruz/pen/kXpKKq" rel="nofollow">source code</a>, the flag marker has the following div: </p>
  
  <pre><code>&lt;div class="leaflet-marker-pane"&gt;&lt;img class="leaflet-marker-icon leaflet-zoom-animated leaflet-clickable" src="/asset/image/leaflet//marker-icon.png" style="margin-left: -12px; margin-top: -41px; width: 25px; height: 41px; transform: translate(324px, 135px); z-index: 135;" tabindex="0"/&gt;
  </code></pre>
  
  <p>I've also noticed that every pokemon being displayed has a div like the following: </p>
  
  <pre><code>&lt;div class="leaflet-marker-icon-wrapper leaflet-zoom-animated leaflet-clickable" style="margin-left: 0px; margin-top: 0px; transform: translate(215px, 113px); z-index: 113;" tabindex="0"&gt;&lt;img class="leaflet-marker-icon " src="//ugc.pokevision.com/images/pokemon/116.png" style="margin-left: 0px; margin-top: 0px; width: 48px; height: 48px;"/&gt;&lt;span class="leaflet-marker-iconlabel home-map-label" style="margin-left: 10px; margin-top: 26px;"&gt;08:15&lt;/span&gt;&lt;/div&gt;
  </code></pre>
  
  <p>I'm assuming the position of the pokemon and the flag marker can be found in the div, particularly right after the text "transform: translate(".</p>
  
  <p>Considering that we know the both the pixel position and the longitude and latitude of the flag, as well as the pixel position of the pokemon, I believe I should be able to get the longitude and latitude of the pokemon. </p>
  
  <p>For example, the flag marker is always at 324px, 135px and we know that the gis coordinates of the flag marker is 39.95142302373031,-75.17986178398132. We also know the coordinates of a pokemon (e.g. 215px, 113px). However, I can't seems to figure out how to get the longitude and latitude of the pokemon.</p>