google maps - How get latitude and longitude from a kml file in PHP -


I want to get the list of cells in the specified area of ​​OpecelID. I can write to:

  http://www.opencellid.org/cell/getInArea?key=9f84179c-73f7-4694-9121-5bcb90e03608&bbox=3.389,-76.5244777931681607,3.3764334069836786, - 76.5119112001518393 and MCC = 732 & amp; MNC = 123 & amp; lac = 4003   

And this gives me a wonderful HTML file content to this content:

  & lt; ? Xml version = "1.0" encoding = "UTF-8"? & Gt; & Lt; Kml xmlns = "http://earth.google.com/kml/2.1" & gt; & Lt; Document & gt; & Lt; Name & gt; OpenCLID Cell & lt; / Name & gt; & Lt; Details & gt; List of available cells & lt; / Description & gt; & Lt; Placemark & ​​gt; & Lt; Name & gt; & Lt; / Name & gt; & Lt; Description & gt; & Lt; [CDATA [Latitude: & lt; P & gt; 3.378199 & lt; / P & gt; & Lt; Br / & gt; Longitude: & lt; P & gt; -76.5,23,528 & lt; / B & gt; & Lt; Br / & gt; MCC: & ​​lt; P & gt; 732 & lt; / P & gt; & Lt; Br / & gt; MNC: & lt; P & gt; 123 & lt; / P & gt; & Lt; Br / & gt; Million: & lt; P & gt; 4003 & lt; / P & gt; & Lt; Br / & gt; CellID: & lt; P & gt; 26,249,364 & lt; / P & gt; & Lt; Br / & gt; AverageSignalStrength: & lt; P & gt; 0 & lt; / P & gt; & Lt; Br / & gt; Samples are: & lt; P & gt; 10 & lt; / P & gt; & Lt; Br / & gt; Unstable: & lt; P & gt; 1 & lt; / P & gt;]] & gt; & Lt; / Description & gt; & Lt; Point & gt; & Lt; Coordinate & gt; -76.523528,3.378199,0 & lt; / Coordinate & gt; & Lt; / Point & gt; & Lt; / Placemark & ​​gt; & Lt; Placemark & ​​gt; & Lt; Name & gt; & Lt; / Name & gt; & Lt; Details & gt; & Lt ;! [CDATA [Latitude: & lt; B & gt; 3.382578 & lt; / B & gt; & Lt; Br / & gt; Lane: & lt; B & gt; -76.518148 & lt; / B & gt; & Lt; Br / & gt; Mcc: & lt; B & gt; 732 & lt; / B & gt; & Lt; Br / & gt; mnc: & lt; B & gt; 123 & lt; / B & gt; Lac: & lt; B & gt; 4003 & lt; / br / & gt; Celed: & lt; B & gt; 26251342 & lt; / B & gt; & Lt; Br / & gt; Average Signal Strength: & lt; B & gt; 0 & lt; / B & gt; Sample: & lt; B & gt; ; 11 & lt; / B & gt; Changeable: & lt; B & gt; 1 & lt; / B & gt;]] & gt; & Lt; / Description & gt; & Lt; Point & gt; & Lt; Coordinate & gt; -76.518148,3.382578,0 & lt; / Coordinate & gt; & Lt; / Point & gt; & Lt; / Placemark & ​​gt; & Lt; / Documents & gt; & Lt; / Kml & gt;   

I especially need to get the latitude, longitude and cell ID of each cell in a php file, because later want to make a map in gloogle map.

How can I get this information? Thanks a lot.

To get an answer in your script, as already suggested, to use it You can open the URI to read.

If you really want XML in the form of a string, then in the curl library, you should be able to easily load the tutorial to use one of these options , Especially curl.

Comments

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -