Some buddy help me?
I have tried to get distance between two address using google map but when i have change source and destination vice-versa then google map giving me diffrent response.
First Address: 1 Airport Drive, Oakland, CA 94621, USA Second Address: 44085 Laurel Canyon Way, Fremont, CA 94539, USA
Response:
"routes" : [
{
"bounds" : {
"northeast" : {
"lat" : 37.7311528,
"lng" : -121.932651
},
"southwest" : {
"lat" : 37.5066302,
"lng" : -122.2137008
}
},
"copyrights" : "Map data ©2015 Google",
"legs" : [
{
"distance" : {
"text" : "24.6 mi",
"value" : 39536
},
"duration" : {
"text" : "33 mins",
"value" : 1982
},
Response:
"routes" : [
{
"bounds" : {
"northeast" : {
"lat" : 37.7325325,
"lng" : -121.932675
},
"southwest" : {
"lat" : 37.5081351,
"lng" : -122.2137008
}
},
"copyrights" : "Map data ©2015 Google",
"legs" : [
{
"distance" : {
"text" : "24.2 mi",
"value" : 38993
},
"duration" : {
"text" : "31 mins",
"value" : 1839
},
In given response object distance->text and distance->value both response diffrent.
I can't understand if same address so why this happen.