Road Map Inference from GPS Traces: A Segmentation and Grouping Framework