By following the examples on https://bixbydevelopers.com/dev/docs/dev-guide/developers/library.geo I can get a viv.geo.GeoPoint, but it contains only longitude and latitude, how do I get more detailed info such as street name?
input (myPoint) {
type (geo.GeoPoint)
min (Required) max (One)
default-init {
intent {
goal: geo.GeoPoint
route: geo.CurrentLocation
}
}
}
There are two ways:
result-view {
match: MyGeoPoint(this)
message: template ("I am at [#{value(this)}]")
}
action (GetMyPoint) {
description (debug for current GPS location)
type (Search)
collect {
input (myPoint) {
type (geo.GeoPoint)
min (Required) max (One)
default-init {
intent {
goal: geo.GeoPoint
route: geo.CurrentLocation
}
}
}
computed-input (address) {
type (geo.Address)
min (Required) max (One)
compute {
intent {
goal: geo.Address
value: $expr(myPoint.reverseGeo)
}
}
}
}
output (MyGeoPoint) {
evaluate {
$expr(myPoint)
}
}
}