Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- final String API_URL = "https://api.opencagedata.com/geocode/v1/json?key=API_KEY&q=Frauenplan+1%2C+99423+Weimar%2C+Germany&pretty=1";
- String result = restTemplate.getForObject(API_URL, String.class);
- //result вернет https://pastebin.com/U4ASMtRL - 1 результат
- //прямой http-запрос на api возвращает https://pastebin.com/Vv3CaBw2 - 4 результата
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement