Пример #1
0
 public static void main(String[] args) {
   String access_token = args[0];
   String city = args[1];
   Location l = new Location(access_token);
   try {
     JSONObject json = l.getMapImageByCity(city);
     Log.logInfo(json.toString());
   } catch (WeiboException e) {
     e.printStackTrace();
   }
 }
Пример #2
0
 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();
   }
 }
Пример #3
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();
   }
 }