ph_address_finder 4.0.0 copy "ph_address_finder: ^4.0.0" to clipboard
ph_address_finder: ^4.0.0 copied to clipboard

Offline Flutter package for Philippine address lookups using PSA and PCIC region, province, municipality, and barangay codes.

example/main.dart

import 'package:flutter/widgets.dart';
import 'package:ph_address_finder/ph_address_finder.dart';

Future<void> main() async {
  WidgetsFlutterBinding.ensureInitialized();

  final psaProvinces = await AddressService.getProvincesByRegion(
    regionSubCode: 'III',
  );
  final psaMunicipalities = await AddressService.getMunicipalitiesByProvince(
    provinceCode: '23',
  );
  final psaAddress = await AddressService.getAddress(
    provinceCode: '23',
    municipalityCode: '1',
    barangayCode: '1',
  );

  final pcicRegionOptions = await PcicAddressService.getRegionOptions(
    regionNo: '1',
  );
  final pcicProvinces = await PcicAddressService.getProvinces(
    regionNo: '1',
    regionOption: '3A',
  );

  debugPrint('PSA provinces in Region III: ${psaProvinces.length}');
  debugPrint('PSA municipalities in Aurora: ${psaMunicipalities.length}');
  debugPrint('PSA address result: $psaAddress');
  debugPrint('PCIC region options for RegionNo 1: $pcicRegionOptions');
  debugPrint('PCIC provinces for region option 3A: ${pcicProvinces.length}');
}
0
likes
150
points
224
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Offline Flutter package for Philippine address lookups using PSA and PCIC region, province, municipality, and barangay codes.

Repository (GitHub)
View/report issues

Topics

#philippines #address #psgc #pcic #offline

License

MIT (license)

Dependencies

flutter

More

Packages that depend on ph_address_finder