Select to view content in your preferred language

Traffic Conditions for iOS

3100
3
07-12-2012 01:46 AM
KhurramWaqas
Emerging Contributor
Hi i am using ArcGIS in my iOS app. I have searched for Traffic Conditions in ArcGIS for iOS API. But unfortunately I did not find the solution 😞
Please tell me is it possible for iOS app using ArcGIS, if possible then what to implement on my server side and what on iOS app side. I did not found any example please provide me some example code if you can. Thanks
0 Kudos
3 Replies
NimeshJarecha
Esri Regular Contributor
There is no provision of traffic condition in ArcGIS Runtime SDK for iOS.

Regards,
Nimesh
0 Kudos
KhurramWaqas
Emerging Contributor
There is no provision of traffic condition in ArcGIS Runtime SDK for iOS.

Regards,
Nimesh


Thanks Nimesh for reply, Ok we cannot get Traffic conditions in iOS SDK. But I have one more question regarding Traffic conditions by using iOS Route task, should it calculate routing by considering traffic conditions. I find some information in "Barriers (Features, Layer definition)" in route task for iOS API http://help.arcgis.com/en/arcgismobile/10.0/apis/iOS/2.1/concepts/index.html#/Route_Task/00pw0000005... .
Please provide some comments for following
1. How to add barriers on server so by using simple Route task (without adding barriers from iOS App) it gives the routing result with best fair traffic conditions.
2. Or we have to add barriers from iOS route task as it is working in online given example of Route task. (For this User of APP must know traffic conditions so he/she can add barriers to avoid heavy traffic, which is an odd job on user side).
3. If possible then give comments about first point mentioned above to add traffic conditions on server side and user just sent the 'to from locations' and server gives results by considering fair traffic conditions.
0 Kudos
NimeshJarecha
Esri Regular Contributor
If you  have a traffic condition layer then you can use it as a barrier in your route task. You should use AGSRouteTaskParameters::set(Point/Polyline/Polygon based on your traffic condition layer geometry)Barriers method to set the barriers before solving the route in your application.

Regards,
Nimesh
0 Kudos