Open Google Maps in the default browser with predetermined start and end points?


I'm using Java and want to open Google Maps in my default browser with a predefined start and destination. I know how to open the home of google maps in the browser but is there any easy (or any way at all) to have my program automatically input the start and ending addresses and then select the first choice?

Try creating a link to, where saddr is the start address and daddr is the destination address. If you're using the address, make sure you URL-encode the values. You can also use latitude/longitude coordinate pairs as parameters by putting @ in front of them, like[email protected],long&daddr=XX.