Search Location by Name

Put your problem here if it does not fit any of the other categories.

Search Location by Name

Postby felix » Wed Mar 05, 2008 6:35 pm

Well, i'm building an android app, with the user input where her from and the destination, and the map make the trace between the locations, but I'm only have the Address for the two locations.

And I'm not found an option to make this.

Can you help me?

Sorry for my poor english.
felix
Junior Developer
Junior Developer
 
Posts: 18
Joined: Thu Feb 14, 2008 4:25 pm
Location: Brasil

Top

Postby plusminus » Wed Mar 05, 2008 8:08 pm

Hello felix,

have a look at this tutorial: http://www.anddev.org/viewtopic.php?t=826
Its about DrivingDirections.
In there you'll find a line:
Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1. this.myDD = new DrivingDirection(from_pos, from_name, to_pos, to_name);
Parsed in 0.031 seconds, using GeSHi 1.0.8.4

If I remember right, you can pass [font=Lucida Console]null[/font] to [font=Lucida Console]from_pos[/font] and [font=Lucida Console]to_pos[/font] and then pass a Location-describing String to the other params.
But I would not expect it to work very well. As the GeoCoder is not yet working properly.

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

Return to Other Coding-Problems

Who is online

Users browsing this forum: Google [Bot] and 15 guests