Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
New Contributor
Posts: 8
Registered: ‎10-09-2013
My Device: Developer

Show route on MapView within app

Hi,

 

I wanted to use the RouteMapInvoker do display a route inside a MapView in my app. But unfortunately, it can only open the Maps app showing the route.

 

Is it possible to display a route inside an app somehow?

 

Kind regards,

Sebastian

BlackBerry Development Advisor
Posts: 81
Registered: ‎09-09-2013
My Device: BlackBerry Z10

Re: Show route on MapView within app

[ Edited ]

Hello,

Check this article, to display routes between locations use the GeoPolyline class (10.2 SDK). (I've not tested before). let me know how it goes with you! Good Luck.

https://developer.blackberry.com/native/documentation/cascades/device_platform/location/mapview.html

Thanks,
Kareem.

Kareem ELSayed | Application Development Consultant | Developer Relations | BlackBerry | Twitter:@kemobyte
New Contributor
Posts: 8
Registered: ‎10-09-2013
My Device: Developer

Re: Show route on MapView within app

Thank you Kareem for the fast reply. I saw the GeoPolyline class and its capabilities but I could only imagine for using them with already known points on the map.

Do you know of a way to get the points of device-calculated route from point A to point B via different ways of transportation (car/pedestrian)?