Package com.targomo.client.api.response
Class OverpassResponse
java.lang.Object
com.targomo.client.api.response.OverpassResponse
-
Constructor Summary
ConstructorsConstructorDescriptionOverpassResponse(TravelOptions travelOptions, org.json.JSONObject result, long requestStart) Responses without a given PoI type will use the first one found in travel options as before for backwards compatibilityOverpassResponse(TravelOptions travelOptions, org.json.JSONObject result, long requestStart, PoiType poiType) Create a response from JSON results, using given travel options -
Method Summary
Modifier and TypeMethodDescriptionlongorg.json.JSONObjectvoidParse results in JSON to travel times map.
-
Constructor Details
-
OverpassResponse
public OverpassResponse(TravelOptions travelOptions, org.json.JSONObject result, long requestStart, PoiType poiType) Create a response from JSON results, using given travel options- Parameters:
travelOptions- travel options, from the requestresult- Travel times in JSONrequestStart- Start time of executionpoiType- Specified PoiType for returned elements
-
OverpassResponse
Responses without a given PoI type will use the first one found in travel options as before for backwards compatibility
-
-
Method Details
-
parseResults
public void parseResults()Parse results in JSON to travel times map. -
getTravelOptions
- Returns:
- the travelOptions
-
getResult
public org.json.JSONObject getResult() -
getTargets
-
getRequestEnd
public long getRequestEnd()
-