| java.lang.Object | |
| ↳ | com.steerpath.sdk.meta.MetaQueryResult |
MetaQueryResult is a response from Steerpath Meta Service and contains raw GeoJson, parsed MetaFeatures and possible error messages.
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
MetaQueryResult(JSONObject json)
Default constructor.
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| LoaderError |
getError()
Retrieve error as enum.
| ||||||||||
| String |
getErrorMessage()
Detailed information what went wrong.
| ||||||||||
| JSONObject |
getJson()
Get RAW GeoJSON received from the backend.
| ||||||||||
| ArrayList<MetaFeature> |
getMetaFeatures()
Returns copy of MetaFeature list.
| ||||||||||
| MetaQuery |
getMetaQuery()
Retrieve MetaQuery that was made to for this MetaQueryResult.
| ||||||||||
| boolean |
hasError()
Returns true if something went wrong during downloading, reading database or parsing GeoJson.
| ||||||||||
| boolean |
isSuccess()
Opposite of hasError().
| ||||||||||
| void |
setMetaFeatures(List<MetaFeature> features)
Sets result MetaFeatures.
| ||||||||||
| String | toString() | ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Default constructor.
Detailed information what went wrong.
Get RAW GeoJSON received from the backend. If raw json contains properties that MetaQuery api does not parse nor provide getters, you have two options: 1. Parse raw json by yourself 2. Override default parser with MetaQuery.Builder().metaFeatureParser();
Returns true if something went wrong during downloading, reading database or parsing GeoJson.
Opposite of hasError().