| | |
| | | info.setStoreName(store.getName()); |
| | | info.setStoreImg(store.getCoverDrawing()); |
| | | info.setDistance((long) Double.parseDouble(distanceTOKilometer)); |
| | | info.setStoreAddr(store.getAddress()); |
| | | |
| | | |
| | | String str = store.getAddress(); |
| | | str = str.substring(str.indexOf("省") + 1); |
| | | |
| | | // 去掉第一个“市”及之前的字符串 |
| | | str = str.substring(str.indexOf("市") + 1); |
| | | |
| | | // 去掉第一个“区”及之前的字符串 |
| | | str = str.substring(str.indexOf("区") + 1); |
| | | |
| | | info.setStoreAddr(str); |
| | | info.setLatitude(storeLat); |
| | | info.setLongitude(storeLon); |
| | | |
| | | storeInfos.add(info); |
| | | } |
| | | // Comparator<StoreInfo> distanceComparator = new Comparator<StoreInfo>() { |