Open cat0363 opened 1 year ago
We've moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process.
I have uploaded a workaround for this issue below. I hope this helps someone who is having the same problem. https://github.com/cat0363/Maui-Workaround13572
Annotation: Please change "YOUR API KEY" in AndroidManifest.xml to the API KEY you are using before executing.
<meta-data android:name="com.google.android.geo.API_KEY" android:value="YOUR API KEY" />
The methods that existed in Xamarin.Forms are essential because the app we are developing needs to obtain the address from the location information. I hope that this issue will be taken up at the milestone planning meeting.
Discussed in https://github.com/dotnet/maui/discussions/13449
As noted in the Discussions, the return value of the GetPlacemarksAsync method has missing values. Therefore, the information stored in the Placemarks object cannot be used to reconstruct the correct address. I would like a method for reverse geocoding as an address (string) from latitude and longitude provided in Xamarin.Forms also in .NET MAUI.
Xamarin.Forms provided the following methods:
In .NET MAUI, latitude and longitude are now stored in the Location object, so I expect the following methods to be provided.
As a workaround for this problem, by implementing the following method as a service, we are trying to get the same result as the method provided by Xamarin.Forms.
[Android]
[iOS]
I have implemented these methods in a way as described on the site below. https://www.davidbritch.com/2021/11/invoke-platform-code-in-net-maui.html
Is it possible to provide the method described in this problem for .NET MAUI as well? I'm hoping the above method is provided because the correct address cannot be reconstructed from the Placemark object. At least the address I got as a string is not missing.