I need to use Google Static Map api, but I need to give it from (latitude, longitude) to (latitude, longitude) and show maps between those two places
can anyone support in this part please
I’m using this code this get map of one place
http://maps.google.com/staticmap?center=30.0566,31.2262&format=png32&zoom=10&size=360×602
but I want to get the map between two places
from : 30.0566,31.2262
to : 25.6969,32.6422
Thanks in Advance
Google Static Maps does not support driving directions. However it does support drawing lines, including encoded polylines. Everything is subject to the maximum length of a URL (2048 characters).
This means you can use the Directions API server-side, extract the encoded polyline from the results and construct the Static Maps URL using the line.
Documentation for the Directions API