Adding map-matching code.