Map address location - best way?

Put problem concerning MapActivities, MapViews, Overlays and GPS in this forum.

Map address location - best way?

Postby ryank » Wed Mar 26, 2008 4:07 pm

I have read multiple ways to map a location and I am a bit confused on what is the best. I simply want to open a map centered on a specific street address. Whatever the best option, is there a link to an example somewhere?

Should I:
1) Use the android Geocoder class?
2) make an http post to get long/lat (from yahoo or somewhere)
3) other

thanks for your help!
Ryan
User avatar
ryank
Developer
Developer
 
Posts: 43
Joined: Mon Jan 28, 2008 3:23 am

Top

Postby ryank » Thu Mar 27, 2008 1:42 pm

I understand there could be some problems, but I went ahead and used the GmmGeocode class.
User avatar
ryank
Developer
Developer
 
Posts: 43
Joined: Mon Jan 28, 2008 3:23 am

MapView Intent?

Postby ryank » Thu Mar 27, 2008 2:08 pm

Has anyone used the MapView Intent to show a point on a map?

http://code.google.com/android/referenc ... tents.html
User avatar
ryank
Developer
Developer
 
Posts: 43
Joined: Mon Jan 28, 2008 3:23 am

Postby plusminus » Thu Mar 27, 2008 5:54 pm

Hello ryank,

doesn't it work :?:

Regards,
plusminus
Image
Image | Android Development Community / Tutorials
User avatar
plusminus
Site Admin
Site Admin
 
Posts: 2688
Joined: Wed Nov 14, 2007 8:37 pm
Location: Schriesheim, Germany

Postby ryank » Thu Mar 27, 2008 6:45 pm

I haven't tried using it yet, but I don't recall seeing any examples of it.
User avatar
ryank
Developer
Developer
 
Posts: 43
Joined: Mon Jan 28, 2008 3:23 am

Postby plusminus » Thu Mar 27, 2008 6:52 pm

Hello ryank,

what about:
Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1. new Intent(android.content.Intent.VIEW_ACTION, Uri.parse("geo:0,0?q=Nwe+York+Broadway"));
Parsed in 0.030 seconds, using GeSHi 1.0.8.4

(untested)

Regards,
plusminus
Image
Image | Android Development Community / Tutorials
User avatar
plusminus
Site Admin
Site Admin
 
Posts: 2688
Joined: Wed Nov 14, 2007 8:37 pm
Location: Schriesheim, Germany

Top

Postby ryank » Fri Mar 28, 2008 9:20 pm

Thanks plusminus!

Is it possible to set defaults, such as zoomDialog, Satelite view, etc, when using the Intent vs. creating your own mapView?
User avatar
ryank
Developer
Developer
 
Posts: 43
Joined: Mon Jan 28, 2008 3:23 am

Postby plusminus » Fri Mar 28, 2008 11:22 pm

Hello ryank,

that document page didn't show anything related to that. :(

Regards,
plusminus
Image
Image | Android Development Community / Tutorials
User avatar
plusminus
Site Admin
Site Admin
 
Posts: 2688
Joined: Wed Nov 14, 2007 8:37 pm
Location: Schriesheim, Germany

Postby ryank » Sun Mar 30, 2008 7:20 pm

I have tried both ways. I think I'll just stick with launching an Inent for now. However, I see mixed results - sometimes it loads the map tiles and other times it just shows my point, with no tiles.

anyone else run into this?
User avatar
ryank
Developer
Developer
 
Posts: 43
Joined: Mon Jan 28, 2008 3:23 am

Postby plusminus » Sun Mar 30, 2008 9:40 pm

ryank wrote:I have tried both ways. I think I'll just stick with launching an Inent for now. However, I see mixed results - sometimes it loads the map tiles and other times it just shows my point, with no tiles.

anyone else run into this?


Its very probably not your fault.
Image
Image | Android Development Community / Tutorials
User avatar
plusminus
Site Admin
Site Admin
 
Posts: 2688
Joined: Wed Nov 14, 2007 8:37 pm
Location: Schriesheim, Germany

Top

Return to Map Problems

Who is online

Users browsing this forum: No registered users and 1 guest