BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 01-15-2009, 10:09 AM   #1
BB1364
Thumbs Must Hurt
 
Join Date: Oct 2007
Model: 7100i
PIN: N/A
Carrier: Dont know
Posts: 195
Default Google map api for Blackberry applications

Please Login to Remove!

Hi

Is there any api available so that i can use google maps in my blackberry application developed using the RIM api's.

Any links ideas will be very useful.


Thanks in advance.
Offline  
Old 01-15-2009, 11:29 AM   #2
Dougsg38p
BlackBerry Extraordinaire
 
Join Date: Mar 2008
Location: Austin, TX
Model: 9700
PIN: N/A
Carrier: T-Mobile
Posts: 1,644
Default

No, but there is a hack someplace on this forum to launch Google Maps with a location reference point.
Offline  
Old 01-16-2009, 03:21 AM   #3
simon.hain
CrackBerry Addict
 
Join Date: Apr 2005
Location: hamburg, germany
Model: 8900
Carrier: o2
Posts: 838
Default

and my KB gives me the link
__________________
java developer, Devinto, hamburg/germany
Offline  
Old 01-21-2009, 12:46 AM   #4
BB1364
Thumbs Must Hurt
 
Join Date: Oct 2007
Model: 7100i
PIN: N/A
Carrier: Dont know
Posts: 195
Default

oh thanks Simon will definitely try it.
Offline  
Old 03-10-2009, 01:16 AM   #5
kalpeshtita
New Member
 
Join Date: Mar 2009
Model: 7100T
PIN: N/A
Carrier: dddd
Posts: 1
Default Blackberry GoogleMap

Hi

Is there any api available so that i can use google maps and shown a multiple location in my blackberry application developed using the RIM api's.

Any links ideas will be very useful.


Thanks in advance.
Offline  
Old 07-14-2009, 07:47 AM   #6
Saurabh Gadkari
New Member
 
Join Date: Jul 2009
Model: 8900
PIN: N/A
Carrier: Don't know
Posts: 11
Default

I was wondering if it's still not possible to use the Google Maps API in a BlackBerry application? Could anyone please let me know if there have been any changes in recent times? I need to do it without using the hack.
Offline  
Old 07-14-2009, 08:45 AM   #7
Dougsg38p
BlackBerry Extraordinaire
 
Join Date: Mar 2008
Location: Austin, TX
Model: 9700
PIN: N/A
Carrier: T-Mobile
Posts: 1,644
Default

What you say "use the Google Maps API" what are you referring to? There is no native API for referencing Google maps.

There is a web service for Google maps, intended for web apps requiring map service. You can find the API docs on Google. No reason why you couldn't use that.

Your other options:
a) use Blackberry Maps Invoke() API
b) use the Google maps hack referenced here
c) use Blackberry MapField (OS 4.6 and higher), which allows you to embed the map in your Java app.
Offline  
Old 07-15-2009, 12:32 AM   #8
Saurabh Gadkari
New Member
 
Join Date: Jul 2009
Model: 8900
PIN: N/A
Carrier: Don't know
Posts: 11
Default

Thanks. You guessed correctly. I wanted to know if any native API had been released. I have my answer now.

I'll now work with the MapField.
Offline  
Old 07-16-2009, 02:39 AM   #9
argus2012
New Member
 
Join Date: Jul 2009
Model: 8830
PIN: N/A
Carrier: T-Mobile
Posts: 6
Exclamation

Quote:
Originally Posted by Dougsg38p View Post
What you say "use the Google Maps API" what are you referring to? There is no native API for referencing Google maps.

There is a web service for Google maps, intended for web apps requiring map service. You can find the API docs on Google. No reason why you couldn't use that.

Your other options:
a) use Blackberry Maps Invoke() API
b) use the Google maps hack referenced here
c) use Blackberry MapField (OS 4.6 and higher), which allows you to embed the map in your Java app.
For b), could you please give me some more about the Google maps hack for Blackberry

For c) how can we mark a poit in the map?

Thank you
Offline  
Old 07-16-2009, 10:14 AM   #10
Dougsg38p
BlackBerry Extraordinaire
 
Join Date: Mar 2008
Location: Austin, TX
Model: 9700
PIN: N/A
Carrier: T-Mobile
Posts: 1,644
Default

Here, let me use the "search" button for you

http://www.blackberryforums.com/deve...-landmark.html
Offline  
Old 07-17-2009, 09:57 PM   #11
koic
Thumbs Must Hurt
 
Join Date: Feb 2009
Location: CANADA
Model: 9000
PIN: N/A
Carrier: Rogers
Posts: 64
Default

Dougsg38p did not actually answer last question because it was about MapField not Google Maps.
You can: a) search forum on MapField or b) look at the example in JDE 4.7.
Basically, you have to override paint() method in MapField.
Example in JDE is OK, except it "glues" marker to the center of the screen.
To glue it to some point on the map you have to use convertWorldToField() method
to get Field (i.e. screen) position from the World location.
Something like this:
PHP Code:
private XYPoint screenField = new XYPoint();
protected 
void paint(Graphics g
{
    
g.setDrawingStyle(Graphics.DRAWSTYLE_AAPOLYGONStrue);
    
super.paint(g);
            
    
convertWorldToField(locationWorldscreenField);
    
g.drawBitmap(screenField.xscreenField.yCenterPoint.getWidth(), CenterPoint.getHeight(), CenterPoint00);                


Last edited by koic; 07-17-2009 at 09:57 PM.. Reason: typo
Offline  
Old 07-18-2009, 08:57 AM   #12
Dougsg38p
BlackBerry Extraordinaire
 
Join Date: Mar 2008
Location: Austin, TX
Model: 9700
PIN: N/A
Carrier: T-Mobile
Posts: 1,644
Default

Sorry, the OP was clearly asking about the google maps hack.

What post were you looking at?
Offline  
Old 07-18-2009, 01:19 PM   #13
koic
Thumbs Must Hurt
 
Join Date: Feb 2009
Location: CANADA
Model: 9000
PIN: N/A
Carrier: Rogers
Posts: 64
Default

Quote:
Originally Posted by Dougsg38p View Post
Sorry, the OP was clearly asking about the google maps hack.
What post were you looking at?
Post #9, question c):
Quote:
For c) how can we mark a poit in the map?

Last edited by koic; 07-18-2009 at 01:21 PM..
Offline  
Closed Thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


Lot of 6 Vintage Apple Drawstring Bags For iPhone, Mac, Apple Watch, iPod picture

Lot of 6 Vintage Apple Drawstring Bags For iPhone, Mac, Apple Watch, iPod

$45.00



Retro 1951 Apple Computer Logo 0.7mm Ballpoint Black Ink Pen Gold Barrel picture

Retro 1951 Apple Computer Logo 0.7mm Ballpoint Black Ink Pen Gold Barrel

$56.41



Vintage Print Block “ Apple Corer Kitchen Tool “ Copper Face Block picture

Vintage Print Block “ Apple Corer Kitchen Tool “ Copper Face Block

$16.00



Vintage Red Apple Six Drawer Storage Organizer File Cabinet  picture

Vintage Red Apple Six Drawer Storage Organizer File Cabinet

$28.00



Vintage  Rainbow Logo Apple Post-It Sticky Notes 4

Vintage Rainbow Logo Apple Post-It Sticky Notes 4" Rare computer collectible

$39.99



VINTAGE 1994 Apple Black Toner Laser Writer Cartridge M 2473 G/A NEW SEALED picture

VINTAGE 1994 Apple Black Toner Laser Writer Cartridge M 2473 G/A NEW SEALED

$25.95







Copyright © 2004-2016 BlackBerryForums.com.
The names RIM © and BlackBerry © are registered Trademarks of BlackBerry Inc.