Convert Google Maps JSON from Google Takeout to a KML file that you can use for Google MyMaps for instance.
The code is 100% client-side using recent Javascript blob file handling.
A working demo is available here The file input creates a blob for the JSON file with a fake local URL.When ready, an AJAX request is made to access the JSON content.
Then it can be converted to KML escaping special chars in the process.
The code is quite a quick & dirty solution for Google Maps takeout JSON file. Many improvements can be made.- Implement automatic recursive analysis on the component of the JSON to have all possible GeoJSON features starting by the lowest level of information
- Add a check on the blob object file to validate the JSON structure