Devrath
Devrath

Reputation: 42824

Sending a Collection of requests for Distance matrix in android

I am looking at the GOOGLE DISTANCE MATRIX



My Question::

Upvotes: 1

Views: 845

Answers (2)

Devrath
Devrath

Reputation: 42824

I want to add another answer Just for someone looking something similar


How to get JSON data using latitude and longitude

http://maps.googleapis.com/maps/api/geocode/json?latlng=44.4647452,7.3553838&sensor=false

Upvotes: 0

Pankaj
Pankaj

Reputation: 2110

Yes it's possible. Doing in this way, you can achieve what you are looking for:

http://maps.googleapis.com/maps/api/distancematrix/json?origins=origin1|origin2|origin3&destinations=destination1|destination2|destination3&mode=driving&sensor=false

So you can set your multiple origins and destinations separated by |.

Then you need to parse the returned Json data in your app.

Upvotes: 1

Related Questions