public final class

MetaQueryResult

extends Object
java.lang.Object
   ↳ com.steerpath.sdk.meta.MetaQueryResult

Class Overview

MetaQueryResult is a response from Steerpath Meta Service and contains raw GeoJson, parsed MetaFeatures and possible error messages.

Summary

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

Public Constructors

public MetaQueryResult (JSONObject json)

Default constructor.

Public Methods

public LoaderError getError ()

Retrieve error as enum.

public String getErrorMessage ()

Detailed information what went wrong.

public JSONObject getJson ()

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();

public ArrayList<MetaFeature> getMetaFeatures ()

Returns copy of MetaFeature list.

public MetaQuery getMetaQuery ()

Retrieve MetaQuery that was made to for this MetaQueryResult.

public boolean hasError ()

Returns true if something went wrong during downloading, reading database or parsing GeoJson.

public boolean isSuccess ()

Opposite of hasError().

public void setMetaFeatures (List<MetaFeature> features)

Sets result MetaFeatures.

public String toString ()