Prediction Object
pointNG methods return a prediction-object. Here is a specification of the available data fields.
Here are the data fields in the prediction object that is a Promise returned by pointNG methods. All values are a type of String.
1
prediction.continent // Name of the continent. Eg. "Europe"
2
prediction.sub_region // Name of the sub region of the continent. Eg. "Northern Europe"
3
prediction.country // Name of the country. Eg. "Finland"
4
prediction.iso2 // ISO2 code of the country. Eg. "FI"
5
prediction.iso3 // ISO3 code of the country. Eg. "FIN"
6
prediction.capital // Name of the capital. Eg. "Helsinki"
7
prediction.currency // Local currency. Eg. "EUR"
8
prediction.phone_code // Local phone prefix. Eg. "358"
9
prediction.state // Name of the state. Eg. "Uusimaa"
10
prediction.city // Name of the city. Eg. "Helsinki"
Copied!
You can also access the location data by using pointng-object's predictionData property
1
pointng.predictionData.sub_region // Name of the sub region of the continent. Eg. "Northern Europe"
2
pointng.predictionData.country // Name of the country. Eg. "Finland"
3
pointng.predictionData.iso2 // ISO2 code of the country. Eg. "FI"
4
pointng.predictionData.iso3 // ISO3 code of the country. Eg. "FIN"
5
pointng.predictionData.capital // Name of the capital. Eg. "Helsinki"
6
pointng.predictionData.currency // Local currency. Eg. "EUR"
7
pointng.predictionData.phone_code // Local phone prefix. Eg. "358"
8
pointng.predictionData.state // Name of the state. Eg. "Uusimaa"
9
pointng.predictionData.city // Name of the city. Eg. "Helsinki"
Copied!
Copy link