android.location.Address.getExtras()方法的使用及代码示例

x33g5p2x  于2022-01-15 转载在 其他  
字(2.1k)|赞(0)|评价(0)|浏览(92)

本文整理了Java中android.location.Address.getExtras()方法的一些代码示例,展示了Address.getExtras()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Address.getExtras()方法的具体详情如下:
包路径:android.location.Address
类名称:Address
方法名:getExtras

Address.getExtras介绍

暂无

代码示例

代码示例来源:origin: CityZenApp/Android-Development

Bundle bundle = reverseGeocodedAddress.getExtras();
String display_name = bundle.getString("display_name");
String poiName = "";

代码示例来源:origin: CityZenApp/Android-Development

if (addresses != null && addresses.size() > 0) {
  reverseGeocodedAddress = addresses.get(0);
  Bundle bundle = addresses.get(0).getExtras();
  String osm_type = bundle.getString("osm_type");
  AppLog.log(addresses.get(0));

代码示例来源:origin: MKergall/osmbonuspack

} else {
  Address address = foundAdresses.get(0); //get first address
  String addressDisplayName = address.getExtras().getString("display_name");
  if (mIndex == START_INDEX){
    startPoint = new GeoPoint(address.getLatitude(), address.getLongitude());
  Bundle extras = address.getExtras();
  if (extras != null && extras.containsKey("polygonpoints")){
    ArrayList<GeoPoint> polygon = extras.getParcelableArrayList("polygonpoints");

代码示例来源:origin: CUTR-at-USF/OpenTripPlanner-for-Android

public CustomAddress(Address address) {
  super(address.getLocale());
  for (int i = 0; i <= address.getMaxAddressLineIndex(); i++){
    super.setAddressLine(i, address.getAddressLine(i));
  }
  super.setFeatureName(address.getFeatureName());
  super.setAdminArea(address.getAdminArea());
  super.setSubAdminArea(address.getSubAdminArea());
  super.setLocality(address.getLocality());
  super.setSubLocality(address.getSubLocality());
  super.setThoroughfare(address.getThoroughfare());
  super.setSubThoroughfare(address.getSubThoroughfare());
  super.setPostalCode(address.getPostalCode());
  super.setCountryCode(address.getCountryCode());
  super.setCountryName(address.getCountryName());
  super.setLatitude(address.getLatitude());
  super.setLongitude(address.getLongitude());
  super.setPhone(address.getPhone());
  super.setUrl(address.getUrl());
  super.setExtras(address.getExtras());
}

相关文章