com.ontimize.util.gis.extension.google
Class GoogleUtils

java.lang.Object
  extended by com.ontimize.util.gis.extension.google.GoogleUtils

public class GoogleUtils
extends java.lang.Object


Field Summary
protected static java.lang.String ERROR_GETGOOGLE_FIELDS_LEFT
           
protected static java.lang.String ERROR_GETGOOGLE_NOT_FOUND
           
protected static java.lang.String ERROR_GETGOOGLE_UNKNOWN
           
static java.lang.String prefixUrl
           
static java.lang.String prefixUrlLatLon
           
static java.lang.String sufixUrl
           
static java.lang.String sufixUrlXml
           
 
Constructor Summary
GoogleUtils()
           
 
Method Summary
static java.lang.String correctString(java.lang.String badString)
           
static void main(java.lang.String[] args)
           
static java.util.Hashtable searchOnGoogle(java.lang.String searchString)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ERROR_GETGOOGLE_UNKNOWN

protected static final java.lang.String ERROR_GETGOOGLE_UNKNOWN
See Also:
Constant Field Values

ERROR_GETGOOGLE_NOT_FOUND

protected static final java.lang.String ERROR_GETGOOGLE_NOT_FOUND
See Also:
Constant Field Values

ERROR_GETGOOGLE_FIELDS_LEFT

protected static final java.lang.String ERROR_GETGOOGLE_FIELDS_LEFT
See Also:
Constant Field Values

prefixUrl

public static final java.lang.String prefixUrl
See Also:
Constant Field Values

prefixUrlLatLon

public static final java.lang.String prefixUrlLatLon
See Also:
Constant Field Values

sufixUrl

public static final java.lang.String sufixUrl
See Also:
Constant Field Values

sufixUrlXml

public static final java.lang.String sufixUrlXml
See Also:
Constant Field Values
Constructor Detail

GoogleUtils

public GoogleUtils()
Method Detail

searchOnGoogle

public static java.util.Hashtable searchOnGoogle(java.lang.String searchString)
Parameters:
searchString - Interest location search string
Returns:
Hashtable with the next data: - errorMessage: Message when the search finished with errors - address: Address found text - pos_x: Longitude double value - pos_y: Latitude double value

correctString

public static java.lang.String correctString(java.lang.String badString)

main

public static void main(java.lang.String[] args)