Convert KML file to JSON/XML?


#1

1) Give a description of the problem
I have a car tracker that I can do a “GET” request in WC, but it’s just a long code of letters and numbers. When I type the url into Google (https://secure.accutracking.com/feeder/v3/ge-latestdata.php?id=redacted), I get a KML file which opens easily in Google Earth. I’d love to be able to extract the actual data as a $response in WC, but can’t figure out how. I can select which format, but I get a file nonetheless.

2) What is the expected behaviour?
Get KML file, and translate it in XML/JSON for use in a piston.


#2

You probably need an external process to convert that for you. In quick search there’s a python library to do such thing but I have no first hand experience with it.

Also you might want to edit your import code to hide that key.