Multi-destination route (google maps on iOS) return void json -


i'm newbie ios programmer , i'm having problems using google's api "directions" (multipath/multiroute) on ios (8.x): when ask draw route between 2 location (origin/destination) there aren't problems if add 1 more location, request web service return json no elements.

my url (for request) this:

https://maps.googleapis.com/maps/api/directions/json?origin=40.853900,14.246600&destination=45.120000,12.535900&waypoints=optimize:true%7c41.910000,12.535900&mode=driving&key=api_key

i have enabled api's (directions, static maps, google maps ios). api key has been generated today , seems ok.

what doing wrong?

your url request works me. i'm getting 0 results because destination coordinate middle of ocean.

make sure api key ios key when testing on ios device , browser key when testing on browser.


Comments