I'm trying the google maps matrix to calculate Distance and time of travel.
I send it using an HTTP, and it seems to work fine
How do I read the the XML result?
I send it using an HTTP, and it seems to work fine
How do I read the the XML result?
Code:
<DistanceMatrixResponse>
<status>OK</status>
<origin_address>Jerusalem, Israel</origin_address>
<destination_address>Tel Aviv, Israel</destination_address>
<row>
<element>
<status>OK</status>
<duration>
<value>1675</value>
<text>50 min</text>
</duration>
<distance>
<value>25277</value>
<text>52 km</text>
</distance>
</element>
</row>
</DistanceMatrixResponse>