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

Java Development

Reply
Regular Contributor
Posts: 94
Registered: ‎05-29-2010
My Device: 9000 bold
My Carrier: asfas

Get directions in a map

Hi all

I want to get the directions from the Mapview from point A to point B .(i can give the co ordinates for the latitude and longitude for points A and B) Is there any way to get this done

Developer
Posts: 203
Registered: ‎07-30-2009
My Device: Bold(9780),Curve(8520)
My Carrier: Vodafone

Re: Get directions in a map

Hi santosh,

 

please see the link

 

http://docs.blackberry.com/en/developers/deliverables/5785/GPS_and_BlackBerry_Maps-4.6.1-US.pdf

 

 

and if you want to draw path in MapField  you have to draw it from paint methid menually.

 

 

Thanks

Tita

Regular Contributor
Posts: 68
Registered: ‎03-17-2010
My Device: 9000,9500,8900
My Carrier: Airtel,Vodafone

Re: Get directions in a map

I was not able to implement it successfully. So I developed to get help from google.

 

Here is a short summarry what i have done.

 

1. Got a google web service that gives me the path in kml format.

You can get the URL easily: Google "google maps api web services". And you can find the url with description.

 

2. As kml is built using xml i have parsed it with document parser.

 

3. Plotted each point on map and drawn lines also when possible.

 

I could get the path with 50-80% accuracy. And the way shown by @titakalpesh did not work. May be it's my fault or something. But I rather choose google maps than this way.

 

 

Regular Contributor
Posts: 94
Registered: ‎05-29-2010
My Device: 9000 bold
My Carrier: asfas

Re: Get directions in a map

Thanksprash_bb_dev


Can u share the way you implemented in a more detailed way