Static Public Member Functions | |
static String | getLocationAddressInfo (Position location, int maxTime) throws InvalidLocationException |
Returns address corresponding to given location. | |
static RoadInfo | getLocationRoadInfo (Position location, int maxTime) throws InvalidLocationException |
Returns road info corresponding to given location. | |
static Position | locationFromAddress (String address, boolean postal, boolean valueMatch, int maxTime) throws GeneralException |
Returns gps location corresponding to a given address. | |
static ArrayList< WayPoint > | locationFromAddressEx (String address, boolean postal, boolean fuzzySearch, int maxTime) throws GeneralException |
Returns location corresponding to taken address. | |
static boolean | searchLocation (String text, OnSearchListener onSearchListener, int maxTime) throws GeneralException |
Returns address candidates through the listener based on the free text string input. | |
|
static |
Returns address corresponding to given location.
location | model.Position instance which contains location for which is the address searched. |
maxTime | Maximum time (in milliseconds) the function can take. If maxTime=0 function execution is not time limited. |
InvalidLocationException | the invalid location exception |
References Api.getInstance(), and Api.getService().
|
static |
Returns road info corresponding to given location.
location | model.Position instance which contains location for which is the address searched. |
maxTime | Maximum time (in milliseconds) the function can take. If maxTime=0 function execution is not time limited. |
InvalidLocationException | the invalid location exception |
References Api.getInstance(), Api.getService(), and RoadInfo.readBundle().
|
static |
Returns gps location corresponding to a given address.
address | the address string in the format "ISO,city,street,house number" or "ISO,zip code,street,house number" |
postal | Flag determining whether second address parameter represents city or ZIP code.
|
valueMatch | Determines whether the result will be the exact match or the best value match (true for fuzzy search of address). |
maxTime | Maximum of time (in milliseconds) function can take. If maxTime=0 function execution is not time limited. |
Notes:
Address parameter house number is optional. If you do not want to fill it write address like this:
"SVK,Bratislava,Einsteinova,"
Second address parameter can represent city name or ZIP code.
The list of ISO codes can be found at http ://userpage.chemie.fu-berlin.de/diverse/doc/ISO_3166.html.
GeneralException | the general exception |
References Api.getInstance(), and Api.getService().
|
static |
Returns location corresponding to taken address.
address | the address of the location in format: "ISO,city,street,house number". |
postal | Flag determining whether second address parameter represents city or ZIP code.
|
fuzzySearch | Determines whether the result will be the exact match or the best value match (true for fuzzy search of address). |
maxTime | Maximum of time (in milliseconds) function can take. If maxTime=0 function execution is not time limited. |
Notes:
The function returns location corresponding to taken address. In some cases there can be more cities with the same name in one country or more streets with the some name in one city.
If there are more results corresponding to taken address LocationFromAddressEx stores the results into array of model.WayPoint.
If you want to strictly specify address you can fill optional address parameters of address - extra city and extra street.
Extra city strictly defines region in country where city is situated. It should be set to province or canton of the country.
LocationFromAddressEx function always fills extra city and extra street parts of address so if there are more results you can choose which one is that you meant.
If you do not want to fill optional street parameters make address like this:
"SVK,Bratislava,Einsteinova,1,,"
Optional address paramters are extra city, extra street and house number.
The list of ISO codes can be found at http ://userpage.chemie.fu-berlin.de/diverse/doc/ISO_3166.html .
GeneralException | the general exception |
References Api.getInstance(), Api.getService(), and WayPoint.readBundle().
|
static |
Returns address candidates through the listener based on the free text string input.
text | free text string to identify a searched address, e.g. "aleksanderplatz" |
onSearchListener | callback listener serving to return address search candidates through its function onResult |
maxTime | Maximum of time (in milliseconds) function can take. If maxTime=0 function execution is not time limited. |
GeneralException | the general exception |
References CallbacksManager.add(), Api.getInstance(), CallbacksManager.getInstance(), and Api.getService().