현재 자신의 위,경도를 받아와 반경2km안에 존재하는 자전거 보관소를 지도에 마커로 표시하고싶습니다.
현재 공공데이터에서 제공하는 전국자전거보관소정보를 엑셀로 받아와 안드로이드에서 String형으로 읽어오고 있습니다.현재 String형을 double형으로 형변환하는 것 까지는 했습니다.
아래에 있는 코드는 전국에 있는 자전거보관소의 위도값을 ExcelLat에 저장하고 경도값을 ExcelLon에 저장합니다.
현재 자신의 위,경도와 저장되있는 위,경도값을 비교하여 반경 2km안에 존재하는 자전거보관소의 위치를 지도에 마커로 표시하고싶습니다. 방법이 있을까요??
for(int row = RowStart; row <= RowEnd; row++) {
String excelload = sheet.getCell(ColumnStart, row).getContents(); // 자전거보관소명
String excelload1 = sheet.getCell(1, row).getContents(); // 소재지도로명주소
String excelload2 = sheet.getCell(2, row).getContents(); // 소재지지번주소
String excelload3 = sheet.getCell(3, row).getContents(); // 위도
String excelload4 = sheet.getCell(4, row).getContents(); // 경도
double ExcelLat = Double.parseDouble(excelload3);
double ExcelLon = Double.parseDouble(excelload4);