Help me in maps

hi , can i make an app that draw path from my location to another location ?
like google map , i choose a location , and the app tell me the path for it .

i tried . but all i found is a polyline that’s required 2 unchanged locations .

sorry for my english that isn’t my language .