I want to draw a path as i give instruction to google map as below :
- Start at the Iowa border on US-61 Northbound at milepost (MP) Grant 0.00.
- Continue north for 16.3 miles to WI-133 (Grant County).
- Turn left and drive west on WI-133 for about 1.1 miles.
- End at MP Grant 1.14 in Potosi at Main Street.
Return Trip:
- Start again at MP Grant 1.14 in Potosi at Main Street on WI-133.
- Head east back to US-61 for 1.1 miles.
- Turn right and drive south on US-61 for 16.3 miles.
- End at MP Grant 0.00 at the Iowa border.
When I pass this instruction to google map I want to draw path on google map.
Can we achieve this Using google map?
If Not than give me suggestion how to achieve this?
I want to draw a path as i give instruction to google map as below :
- Start at the Iowa border on US-61 Northbound at milepost (MP) Grant 0.00.
- Continue north for 16.3 miles to WI-133 (Grant County).
- Turn left and drive west on WI-133 for about 1.1 miles.
- End at MP Grant 1.14 in Potosi at Main Street.
Return Trip:
- Start again at MP Grant 1.14 in Potosi at Main Street on WI-133.
- Head east back to US-61 for 1.1 miles.
- Turn right and drive south on US-61 for 16.3 miles.
- End at MP Grant 0.00 at the Iowa border.
When I pass this instruction to google map I want to draw path on google map.
Can we achieve this Using google map?
If Not than give me suggestion how to achieve this?
Share Improve this question asked Mar 27 at 5:11 Zala SatyarajsinhZala Satyarajsinh 1 1- Please provide enough code so others can better understand or reproduce the problem. – Community Bot Commented Mar 28 at 16:44
1 Answer
Reset to default 0You Can do this but you need to convert your instructions into geographic coordinates. For example purposes, let’s assume you have these coordinates (you would normally obtain these by geocoding your milepost or known points)
Start - Iowa border at US-61 (e.g., LatLng(42.0, -91.0))
North Point - 16.3 miles north (e.g., LatLng(42.15, -91.0))
Turn Point - Intersection with WI-133 (e.g., LatLng(42.15, -91.02))
End of Outbound - Potosi (e.g., LatLng(42.16, -91.02))
Return Trip - You can reverse these coordinates or define them as needed.
Insted of the instructions you need to send pints from where to where the google map build the map for you according to those points is this help