How do I get the city or municipality of a RoutingResult object?
I wonder if I can get the city from a RoutingResult object or a RoutingLayer object. May be the city of the starting point or ending point.
I’m using an Android Xamarin application.
How do I get the city or municipality of a RoutingResult object?
I wonder if I can get the city from a RoutingResult object or a RoutingLayer object. May be the city of the starting point or ending point.
I’m using an Android Xamarin application.
Hi Rafael_Oliveira,
RoutingResult and RoutingLayer don’t contains the city, it mainly contains the route segment line features.
The one solution is, when you get the routing result, you can find which city it contained by spatial query to a city data layer. If the segment line is contained or intersect by a city polygon, you can know this city is it belong to.
And you can try to view the column value in RoutingResult.Features, if the feature contains the city value, you can directly read it, this solution is related with your data.
I hope that’s helpful.
Regards,
Ethan