Skip to contents

Clean and flag

clean_addresses()
Clean and standardise address fields
flag_bad_addresses()
Flag addresses that should not be blindly geocoded
flag_field_conflicts()
Flag cross-field conflicts in location data

Geocode and validate

geocode_records()
Run the full geocoding cascade
geocode_address()
Look up a single address and return ranked candidate points
geocode_census()
Primary geocode pass via the US Census batch geocoder
geocode_arcgis()
ArcGIS address fallback pass (Google-like fuzzy matching)
geocode_by_name()
Name-based geocode pass (the "paste it in a browser" tier)
validate_geocodes()
Validate geocoded coordinates against a region
add_match_confidence()
Add a unified match-confidence score
region_bbox()
Region bounding box
bbox_from_sf()
Build a geocoding bounding box from an sf layer
in_bbox()
Is a coordinate inside a bounding box?

Geography and export

build_local_geography()
Build a local geography layer from Census TIGER/Line boundaries
add_local_geography()
Join records to local geography
add_county_muni()
Add county and municipality fields from Census boundaries
add_muni_from_shapes()
Add county and municipality fields from boundary polygons
add_muni_from_key()
Add county and municipality fields by joining on a shared key
add_census_geographies()
Attach multiple Census geography levels to geocoded points
backfill_from_reference()
Backfill verified coordinates from a trusted reference table (Tier 0)
write_geocode_review()
Export only the records that still need a human
apply_manual_overrides()
Apply completed manual overrides
export_location_crosswalk()
Export the location crosswalk

Audit helpers

summarise_geocoding()
Summarise geocoding quality
explain_geocode_result()
Explain how geocoded records were handled
plot_geocode_review_map()
Plot geocoded records for review
suggest_geography_level()
Suggest a Census geography level for a state
compare_geocode_runs()
Compare two geocoding runs

Reproducibility

locatr_cache() print(<locatr_cache>)
Create a locatr response cache
cache_info()
Summarise a locatr cache
cache_clear()
Clear a locatr cache
geocode_provenance() print(<locatr_provenance>)
Read the provenance manifest from a geocoding run
geocode_report() print(<locatr_report>)
Summarise a geocoding run into a provenance report

Review

build_review_overrides()
Build a manual-override table from review decisions
run_locatr_review_app()
Launch the locatr map-based review app

App

run_locatr_app()
Launch the locatr demo Shiny app