NREL / mappymatch

Pure-python package for map matching
http://mappymatch.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
57 stars 19 forks source link

Add Road.to_json() method #163

Closed nreinicke closed 10 months ago

nreinicke commented 1 year ago

In order to make it easier to serialize a Road object, we could add a new to_json() method to the Road class (similar to here).

Then we could call it's new to_json() method from the match to_json() method (shown above) to get all the road information when we convert a match to json.