IIUC, doing a forward geocode (looking up an address from a name) is pretty
straightforward, you do this:
private void findLocation() {
List<Address> locations = null;
Geocoder geocoder = new Geocoder(this, Locale.getDefault());
try {
locations =
geocoder.getFromLocationName(mName.getText().toString(), 5);
} catch (IOException e) {}
}
If I put in "The White House" or "A&P Washington NJ", I get nothing back,
but the application Locale shows both. If I put in "The Empire State
Building", I do get an address back.
What's the trick?
--
Faber Fedor
Cloud Computing New Jersey
http://cloudcomputingnj.com
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---