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 classGeoService.Coord
-
Constructor Summary
Constructors Constructor Description GeoService()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCacheItem(String key)GeoService.CoordgetCoord(String address)static GeoServicegetInstance(GlobalContext globalContext)static voidmain(String[] args)StringsetCacheItem(String key, String value)voidsetCoordInExcel(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
-
-