正确链接Instagram API?

时间:2016-09-18 19:45:58

标签: java android instagram

为什么我得到相同的结果,如果我称这个链接:

https://api.instagram.com/v1/locations/search?lat=48.858844&lng=2.294351&access_token=ACCESS-TOKEN&distance=20

(结果):

{"meta": {"code": 200}, "data": [{"latitude": 48.858386309412, "id": "2593354", "longitude": 2.2945538162266, "name": "Tour Eiffel"}, {"latitude": 48.858447741866, "id": "263928560", "longitude": 2.2939224301988, "name": "Paris Effiel Tower"}, {"latitude": 48.8567, "id": "6889842", "longitude": 2.3508, "name": "Paris, France"}, {"latitude": 48.858386309412, "id": "264033675", "longitude": 2.2945538162266, "name": "On The Top Of The Eiffel Tower"}, {"latitude": 48.858222222222, "id": "303190233", "longitude": 2.2945, "name": "Altitude 95"}, {"latitude": 48.859031848881, "id": "257881339", "longitude": 2.2935777831503, "name": "Restaurant 58 At The Eiffel Tower"}, {"latitude": 48.858257700528, "id": "276056134", "longitude": 2.2944542005724, "name": "Eiffel Tower Sommett, Paris, France"}, {"latitude": 48.85478, "id": "253202376", "longitude": 2.30038, "name": "La Tour Effiel"}, {"latitude": 48.858496, "id": "215715721", "longitude": 2.294364, "name": "Restaurant Jules Verne on top of the Eiffel Tower"}, {"latitude": 48.858653598246, "id": "213790743", "longitude": 2.2940427451409, "name": "58 Tour Eiffel (officiel)"}, {"latitude": 48.8578199, "id": "255844661", "longitude": 2.29517, "name": "Torre Eiffel Paris"}, {"latitude": 48.85478, "id": "249042610", "longitude": 2.30038, "name": "Eiffle Tower, Paris"}, {"latitude": 48.858318956201, "id": "235257238", "longitude": 2.2944272576363, "name": "Le Jules Verne - Tour Eiffel"}, {"latitude": 48.862744073789, "id": "213735539", "longitude": 2.2877834063019, "name": "Trocadero - Eiffel Tower - Paris"}, {"latitude": 48.8587977826, "id": "501461117", "longitude": 2.29279927942, "name": "Pont Alexandre lll, Paris"}, {"latitude": 48.858343014454, "id": "480084479", "longitude": 2.2944097434573, "name": "58 Tour Eiffel Restaurant Eiffel Tower"}, {"latitude": 48.858694031165, "id": "266272154", "longitude": 2.2942663101873, "name": "56 Eiffel Tower Restaurant"}, {"latitude": 48.855300021947, "id": "253194889", "longitude": 2.292627008778, "name": "Louvre Museum"}, {"latitude": 48.845153069693, "id": "220099992", "longitude": 2.2911305275305, "name": "Paris 15E"}, {"latitude": 48.8582503385, "id": "244607485", "longitude": 2.30800565868, "name": "Rio Sena - Paris"}]}

和此:

https://api.instagram.com/v1/locations/search?lat=48.858844&lng=2.294351&access_token=ACCESS-TOKEN&distance=600

(和第二个结果):

{"meta": {"code": 200}, "data": [{"latitude": 48.858386309412, "id": "2593354", "longitude": 2.2945538162266, "name": "Tour Eiffel"}, {"latitude": 48.858447741866, "id": "263928560", "longitude": 2.2939224301988, "name": "Paris Effiel Tower"}, {"latitude": 48.8567, "id": "6889842", "longitude": 2.3508, "name": "Paris, France"}, {"latitude": 48.858386309412, "id": "264033675", "longitude": 2.2945538162266, "name": "On The Top Of The Eiffel Tower"}, {"latitude": 48.858222222222, "id": "303190233", "longitude": 2.2945, "name": "Altitude 95"}, {"latitude": 48.859031848881, "id": "257881339", "longitude": 2.2935777831503, "name": "Restaurant 58 At The Eiffel Tower"}, {"latitude": 48.858257700528, "id": "276056134", "longitude": 2.2944542005724, "name": "Eiffel Tower Sommett, Paris, France"}, {"latitude": 48.85478, "id": "253202376", "longitude": 2.30038, "name": "La Tour Effiel"}, {"latitude": 48.858496, "id": "215715721", "longitude": 2.294364, "name": "Restaurant Jules Verne on top of the Eiffel Tower"}, {"latitude": 48.858653598246, "id": "213790743", "longitude": 2.2940427451409, "name": "58 Tour Eiffel (officiel)"}, {"latitude": 48.8578199, "id": "255844661", "longitude": 2.29517, "name": "Torre Eiffel Paris"}, {"latitude": 48.85478, "id": "249042610", "longitude": 2.30038, "name": "Eiffle Tower, Paris"}, {"latitude": 48.858318956201, "id": "235257238", "longitude": 2.2944272576363, "name": "Le Jules Verne - Tour Eiffel"}, {"latitude": 48.862744073789, "id": "213735539", "longitude": 2.2877834063019, "name": "Trocadero - Eiffel Tower - Paris"}, {"latitude": 48.8587977826, "id": "501461117", "longitude": 2.29279927942, "name": "Pont Alexandre lll, Paris"}, {"latitude": 48.858343014454, "id": "480084479", "longitude": 2.2944097434573, "name": "58 Tour Eiffel Restaurant Eiffel Tower"}, {"latitude": 48.858694031165, "id": "266272154", "longitude": 2.2942663101873, "name": "56 Eiffel Tower Restaurant"}, {"latitude": 48.855300021947, "id": "253194889", "longitude": 2.292627008778, "name": "Louvre Museum"}, {"latitude": 48.845153069693, "id": "220099992", "longitude": 2.2911305275305, "name": "Paris 15E"}, {"latitude": 48.8582503385, "id": "244607485", "longitude": 2.30800565868, "name": "Rio Sena - Paris"}]}

它完全一样。

链接的语法是否正确? 参数'距离'不会改变结果的范围吗?

0 个答案:

没有答案