Yes. The core issue as I mentioned in the other thread is that the block is implemented to be synchronous because of the design on Android (this design predates App Inventor coming to MIT from Google). However, the iOS API to compute the address is asynchronous so there's no easy way to map this into the existing design.
Thanks for this clarification.
Would be good to update / mention this on https://doesappinventorrunonios.com/
Any idea on when an asynchronous implementation could be done / released?
This feature is really key in many applications (including mine ).
Could you plan the implementation of this asynchronous feature and let us know when it could be achieved?
Thanks a lot
@ewpatton: What is the status of this fix? You wanted to have this fix in nb201, but I do not see it, even in latest nb202 version.
Thanks for your feedback
The blocks for this are on ai2. However, for the iOS version you will need to use the companion on TestFlight. The functionality is also in the iOS build server so available to compiled apps.
The blocks you are looking for are Geocode:
and the corresponding event handler GotLocationFromAddress:
Thanks a lot for this updated feature allowing to get Latitude & Longitude from address on iOS.
It works for both Android AND iOS
One comment: with LatitudeFromAddress, in case of address not found, I was using Screen1.ErrorOccured to trap this pb:
This is not working anymore with Geocode and I am now testing if Latitude and Longitude are 0 to detect if adrdress was not found. Not a real issue, but a different behaviour