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

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

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

Address.setThoroughfare介绍

暂无

代码示例

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

  1. if (jResult.has("name")){
  2. gAddress.setAddressLine(addressIndex++, jResult.get("name").getAsString());
  3. gAddress.setThoroughfare(jResult.get("name").getAsString());
  4. displayName = jResult.get("name").getAsString();

代码示例来源:origin: thuryn/your-local-weather

  1. address.setThoroughfare(a.optString(WIRE_THOROUGHFARE));
  2. address.setSubLocality(a.optString(WIRE_SUBLOCALITY));
  3. address.setPostalCode(a.optString(WIRE_POSTALCODE));

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

  1. if (jAddress.has("road")){
  2. gAddress.setAddressLine(addressIndex++, jAddress.get("road").getAsString());
  3. gAddress.setThoroughfare(jAddress.get("road").getAsString());

代码示例来源:origin: grzegorznittner/chanu

  1. address.setThoroughfare(readUTF(dis));
  2. int numAddressLines = dis.readInt();
  3. for (int i = 0; i < numAddressLines; ++i) {

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

  1. public CustomAddress(Address address) {
  2. super(address.getLocale());
  3. for (int i = 0; i <= address.getMaxAddressLineIndex(); i++){
  4. super.setAddressLine(i, address.getAddressLine(i));
  5. }
  6. super.setFeatureName(address.getFeatureName());
  7. super.setAdminArea(address.getAdminArea());
  8. super.setSubAdminArea(address.getSubAdminArea());
  9. super.setLocality(address.getLocality());
  10. super.setSubLocality(address.getSubLocality());
  11. super.setThoroughfare(address.getThoroughfare());
  12. super.setSubThoroughfare(address.getSubThoroughfare());
  13. super.setPostalCode(address.getPostalCode());
  14. super.setCountryCode(address.getCountryCode());
  15. super.setCountryName(address.getCountryName());
  16. super.setLatitude(address.getLatitude());
  17. super.setLongitude(address.getLongitude());
  18. super.setPhone(address.getPhone());
  19. super.setUrl(address.getUrl());
  20. super.setExtras(address.getExtras());
  21. }

相关文章