我在下面写了代码,我想得到 lat 和 lng 值,但我不知道该怎么做。我想学习获取列表中的元素。
public class GeoCode
{
public List<Results> Results { get; set; }
}
public class Results
{
public Geometry geometry { get; set; }
public class Geometry
{
public LL location { get; set; }
public ViewPort viewPort { get; set; }
}
public class LL
{
public double lat { get; set; }
public double lng { get; set; }
}
public class ViewPort
{
public LL northeast { get; set; }
public LL southwest { get; set; }
}
}