<jupyter_start><jupyter_text>Import packages<jupyter_code>from hagerstrand.hagerstrand import Map, gmapjson_to_geojson<jupyter_output><empty_output><jupyter_text>Instantiate a map<jupyter_code>m = Map()<jupyter_output><empty_output><jupyter_text>Add a json of location history as a geojson to the map<jupyter_code>m.add_gmapjson("../../examples/data/LocationHistory.json")
m<jupyter_output><empty_output><jupyter_text>Convert a json of location history from Google Map to a geojson<jupyter_code>gmapjson_to_geojson("./data/LocationHistory.json")<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.10608695652173913, 'fraction_numerical': 0.0, 'mean_word_length': 11.0, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '4', 'dir': 'jupyter-structured-clean-dedup', 'id': '418577', 'license': 'MIT', 'n_tokens_mistral': 215, 'n_tokens_neox': 209, 'n_words': 32, 'path': 'docs/notebooks/Add_GoogleMapsJSON_Map.ipynb', 'repo_name': 'jimmy-feng/hagerstrand', 'size': '575'}