Navigation from source to destination

Dear Sir,

I am currently implementing a direction or navigation feature in my software. My requirement is that, upon clicking a “Navigate” button, I would like the application to initiate navigation from a source location to a destination, similar to Google Maps.

Could you kindly provide any sample code or resources that I can use as a reference for this functionality?
i am using java and android
Thank you for your support.

Best regards,
karthik 7893839714