제가 개발하는 Qnote All-in-One의 경우 유료앱이라 일단 야후 API는 사용할 수가 없습니다.
더불어 야후API에 10,000이라는 쿼리제한을 적어놓았는데요 날씨 API 자체는 무제한입니다.
다만, 날씨를 받아오기위해선 WOEID라는 국가/도시별로 정해진 지역코드가 있는데 이코드를 받기 위해서 GeoPlanet API를 이용해야하는데요, 이 쿼리제한이 10,000입니다. 참고적으로 YSQ을 이용하면 도시이름을 검색해 별도의 제한없이 WOEID를 가져올 수는 있습니다. 저의 경우 위도/경도로 WOEID를 받아와야 해서 별 수 없이 GeoPlanet API를 이용했습니다.
그럼, 간단하게 가져오는 방식에 대해 짚고 넘어가겠습니다. 야후는 총 2단계 방식으로 결과값을 가져옵니다.
첫번째로, 좌표값으로 WOEID를 가져와야 합니다. 그러기 위해서는 우선 야후에 프로젝트 신청하시고 어플ID를 발급받으셔야 합니다. 그런후 아래 첫번째줄의 URL을 보내면 WOEID를 반환합니다.
그 반환된 값을 두번째줄의 날씨피드로 쏴주기만 하면 날씨데이터를 XML로 반환해줍니다.
추가적으로 날씨에 대한 상태정보는 170여개로 분류되어 디테일하게 알려줍니다. 그에 따라 아이콘도 170개… 아이콘에 관련된 문서를 보시면 GIF만 지원되는지 알고 좀 난감했었습니다. 하지만 API 문서탭에 아이콘 HELP을 클릭해보시면 아시겠지만 이미지 사이가 15 x13부터 500×420 다양한 사이즈를 지원합니다. 아래는 적용해본 앱의 스샷입니다. 생각보다 깔끔하게 나와서 만족스럽습니다. ^^
다음 릴리즈시 웨더버그의 API를 적용시켜 출시할 예정인데요, 출시후 별도의 문제점이 발견되면 글을 올려드리겠습니다.
He roots for the Dodgers while also hoping one day his hometown Padres become relevant again. And, of course, he always wants the team he coaches to win.. Lasike, should he take the field tomorrow morning, will become the third New Zealand born player to experience the NFL, following the footsteps of Riki Ellison and David Dixon. But even before seeing a snap in the regular season, the 26 year old has already enjoyed the luxuries of a multi billion dollar league.. But believe it or not, this is not even the fucked up part. No. Since its merger in 1970, NFL fans have been indulged with competitions that have inspired passion and Cheap NFL Jerseys hatred between teams. Ravens Steelers, Jets Patriots, 49ers Cowboys, are (or have been) great contests that create the same kind of intensity that any Premier League derby match delivers.. Of his two losses one of them was to Alonzo Highsmith. As an NFL player he has 107 sacks and he went to 5 Pro Bowls. Earlier, a blocked Frankfurt punt led to London’s other score in the third quarter. The ball was recovered at the Galaxy’s nine yard line, and a few plays later White claimed his first World League touchdown, a four yard pass to the tight end Mike Titley. Unfortunately for our original smart Alec, he got a bit too clever. Instead of paying the crooked cops like a good honest man, he started to hide his plunder. Let me show ray ban outlet you some more advance stuff, the Butterfly Kick. Butterfly kick is very cool to look at cause you got to see people flying on the air, with the body leaving the air. “It’s really kind of funny,” Bukiet said of his dire predictions. “There are a lot of Yankee fans in New Jersey and I’m not getting it from them. Well, unless you count those 11 terrorists in England with the sophisticated plot to blow up cheap jerseys china planes ray ban outlet with liquid explosives. You know, the ones who are the reason you can’t take a child sized bottle of shampoo onto the plane any more. You can stay creative, but if it’s going to look sloppy and not very well put together, you might want to kind of put that idea aside. And going along with that don’t get frustrated with yourself if the pass you thought up of doesn’t look as tight and as polished as you would like it href=”http://cheapjerseysupply.com/” target=”_blank”>cheap jerseys to at first. The majority of these fields are worked by young children wielding machetes and heavy bags of cocoa beans, slaving for long hours in exchange for little to no pay. In the Ivory Coast, child labor is cheap oakleys sunglasses such a problem that the government began putting up well meaning signs bearing the message that children should be in school Cheap mlb Jerseys and not toiling in the cocoa fields.