Scarygami / location-history-json-converter

Convert the Location History JSON File from Google Takeout into a useable format
Apache License 2.0
468 stars 117 forks source link

Filter to only include items NOT in Polygon? #54

Open dwids opened 1 year ago

dwids commented 1 year ago

Thank you very much for your great work. I have been trying to write code to do this winnowing of the huge, unwieldy Takeout file. So yesterday I let out a 'woo hoo' when I found this.

I've found that a chunk of my location data is me at (or near) home. Is there a way to include items NOT in a Polygon? Thanks.

rickprice commented 1 year ago

I could look at this for you if it was really critical to you. I believe the library uses a third party library to use polygons, but perhaps the test could be flipped with a command line flag.

dwids commented 1 year ago

I could look at this for you if it was really critical to you. I believe the library uses a third party library to use polygons, but perhaps the test could be flipped with a command line flag.

Thank you. It's not critical and more of a 'nice to have'. I too was thinking of the 'not' switch, but my knowledge of python is just average.