A method of obtaining a path in a mobile device