| | |
| | | String result = storeLon+","+storeLat; |
| | | String distanceTOKilometer = gdMapGeocodingUtil.getDistanceTOKilometer(current, result); |
| | | long l = 0; |
| | | try { |
| | | l = Long.parseLong(distanceTOKilometer); |
| | | }catch (Exception e){ |
| | | l = 0; |
| | | } |
| | | // try { |
| | | // l = Long.parseLong(distanceTOKilometer); |
| | | // }catch (Exception e){ |
| | | // l = 0; |
| | | // } |
| | | StoreInfo info = new StoreInfo(); |
| | | info.setStoreId(store.getId()); |
| | | info.setStoreName(store.getName()); |
| | | info.setStoreImg(store.getCoverDrawing()); |
| | | info.setDistance(l); |
| | | info.setDistance((long) Double.parseDouble(distanceTOKilometer)); |
| | | info.setStoreAddr(store.getAddress()); |
| | | info.setLatitude(storeLat); |
| | | info.setLongitude(storeLon); |