public static void main(String[] args) {
   String access_token = args[0];
   String srcids = args[1];
   Location l = new Location(access_token);
   try {
     List<Poisition> list = l.showPoisBatch(srcids);
     for (Poisition p : list) {
       Log.logInfo(p.toString());
     }
   } catch (WeiboException e) {
     e.printStackTrace();
   }
 }
示例#2
0
 public static void main(String[] args) {
   String access_token = args[0];
   String q = args[1];
   String coordinates = args[2];
   Location l = new Location(access_token);
   try {
     List<Poisition> list = l.searchPoisByAreaByQ(q, coordinates);
     for (Poisition p : list) {
       Log.logInfo(p.toString());
     }
   } catch (WeiboException e) {
     e.printStackTrace();
   }
 }