Google Maps - Scrambling KML / extract overlay data (coordinates)

I would like to understand how to clear / extract KML data from Google map overlay.

I have tried the past few months without success. I tried using fiddlermy console developer tools to learn the source code of the site. I went through almost every line of Javascript, and I still cannot figure out how to intercept KML data or extract it from these cards (see below).

Target Cards

Here is an overlay consisting of a single satellite location.
And here you can find many more examples of similar maps.

I’m not even sure that this is possible and how it can be achieved.
Could anyone do a similar task? Please, I need guidance on how to achieve this.

Thank you for your time.

+4
source share
2 answers

I look, and there is no cropping data on the cover ...

For KML, you can simply do this on the server side. opend, then kml, as an xml file, and scanning this dom for the label, polygon and lineaRing label inside you will find the coordinates in lng, lat format.

Client side, you can do this with jquery by loading the xml file and scanning the node you need ...

The kml line is the standard ...

<Document>
    <Folder>
        <name>Full Satellite Footprint - EIRP</name>
        <Placemark>
            <name>Atlantic Ocean EIRP 40dBW</name>
            <styleUrl>https://www.telesat.com/kml/TelesatKMLStyles.kml#coverageArea</styleUrl>
            <Polygon>
                <outerBoundaryIs>
                    <LinearRing>
                        <coordinates>36.826,55.201,0 37.0055090185901,55.2151134621769,0 36.8423211206917,55.6055987892911,0 36.5363438121321,56.3253739818074,0 36.2041398771245,57.1121727752464,0 35.6982976142624,58.2038341375218,0 35.4781980136987,58.66035224623429,0 35.2392363744069,59.1245171274041,0 34.991585220959,59.5937508918316,0 34.7381410580738,60.0586398991811,0 34.4948230756851,60.5170059779041,0 34.2134913653683,60.9937069314964,0 33.9399744247826,61.4547783456267,0 33.6430131750038
+1
source

pjscrape..

WebKit, Javascript . , , .

0

Source: https://habr.com/ru/post/1615052/


All Articles