Problem with Geocoding

Daniel Manchester 86 Reputation points

I am using VS 2022 ver 17.4.1 and deploying my Maui app to my physical device I am getting System.NullReferenceException
Message=Object reference not set to an instance of an object

using the following code

string address = "Microsoft Building 25 Redmond WA USA";
var m = await Geocoding.Default.GetLocationsAsync(address);

Thanks for your help

A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,179 questions
{count} votes