Package org.javlo.service
Class GeoService
- java.lang.Object
-
- org.javlo.service.GeoService
-
public class GeoService extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
GeoService.Coord
-
Constructor Summary
Constructors Constructor Description GeoService()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getCacheItem(String key)
GeoService.Coord
getCoord(String address)
static GeoService
getInstance(GlobalContext globalContext)
static void
main(String[] args)
String
setCacheItem(String key, String value)
void
setCoordInExcel(File excelFile, String addressCol, String latCol, String lonCol)
-
-
-
Method Detail
-
getInstance
public static GeoService getInstance(GlobalContext globalContext)
-
getCacheItem
public String getCacheItem(String key) throws IOException
- Throws:
IOException
-
setCacheItem
public String setCacheItem(String key, String value) throws IOException
- Throws:
IOException
-
setCoordInExcel
public void setCoordInExcel(File excelFile, String addressCol, String latCol, String lonCol) throws Exception
- Throws:
Exception
-
getCoord
public GeoService.Coord getCoord(String address) throws Exception
- Throws:
Exception
-
-