GraffitiW3W.Communicator

View Categories

About #

This is the workhorse class of the GraffitiW3W implementation. It handles all communication with the API.

Enumerations #

This object exposes no enumerations.

Constants #

This object exposes no constants.

Events #

NameParametersReturn TypeDescription
Completedpoint as GraffitiW3W.MapPoint

words as String
NoneThis event is raised when a query has been successfully resolved.
ErrorresponseCode as Integer

errorCode as String

errorMessage as String
NoneAn error occurred while performing a query. In many cases, the parameter values are passed directly from the W3W API response. A response code of 1 indicates that the service was successfully contacted but reported an error. Other response codes are likely to be HTTP status codes.
SuggestionAvailableresults() as GraffitiW3W.SuggestionNoneThis even is raised when a query to get suggestions for a three word value has completed successfully.

Methods #

NameParametersReturn TypeDescription
FromCoordinatespoint as GraffitiW3W.MapPointNoneBegins an asynchronous query to get a point from a three word value from a set of map coordinates.
FromCoordinatespoint as GraffitiW3W.MapPointStringPerforms a synchronous API call to resolve a map point to a three word value. This is the recommended method for Web applications.
GetSuggestionsforWords as GraffitiW3W.AutoSuggestNoneBegins an asynchronous query to get suggestions for a supplied three word value.
GetSuggestionsforWords as GraffitiW3W.AutoSuggestGraffitiW3W.SuggestionPerforms a synchronous query to get a suggestion for a three word value. This is the recommended method for Web applications.
ToCoordinateswords as StringNoneBegins an asynchronous query to resolve a three words value to a set of map coordinates.
ToCoordinateswords as StringGraffitiW3W.MapPointPerforms a synchronous query to resolve a three words values to a set of map coordinates. This is the recommended method for Web applications.

Properties #

NameTypeDefault ValueDescription
LanguageGraffitiW3W.LanguageSystemLanguageThe language which queried three words values and results should be. Override as needed.