droid12 wrote:In your example below, what if you don't have lat/lon or span - only an address? Do you span the continent and center in Kansas?
droid12 wrote:I tried a number of examples with getFromLocationName and I get null returned in all cases. If anyone gets this to work - please post!
res wrote:If you try and access the Address straight away it will be null since the emulator hasn't had time to get the information to populate it yet. If you view the emulator logs after you make a query you will see something like
D/LocalGeoCoder( 769): Got Address ( AND THEN ALL THE INFORMATION ABOUT THE ADDRESS)
other replies are
D/LocalGeoCoder( 769): Got locatin query ( AND THEN ALL THE INFORMATION ABOUT THE LOCATION)
D/LocalGeoCoder( 769): Got business query ( AND THEN ALL THE INFORMATION ABOUT THE BUSINESS)
I presume you will need to catch this via your intent reciever so you know when its ok to try and read information from the Address. Haven't got this far yet, need to find more spare time.
plusminus wrote:So you managed it
Could you explain what you mean with the Intent and IntentReceiver issue I can see no parameter where we can place an Intent ...
res wrote:You know how with the GPS location update we use 'android.intent.action.LOCATION_CHANGED' for our IntentReceiver whenever this action occurs? Then we act on this intent by updating our gps location.
res wrote:...This is really frustrating
plusminus wrote:Would be fine if we could pass a Handler or sth. similar to the function that "gets called" when geocoding failed or is finished...
droid12 wrote:Why do they advertise these APIs if they aren't ready... what good does it serve?
Users browsing this forum: Google [Bot] and 11 guests