mp_get_segments function

Extract route segments from a Google Maps Directions API response