Skip to content
TruTecDevelopers
Get an API key

Condition ratings (PASER & PCI)

Rate pavement condition from one image or a location and get a PASER rating or a PCI score with the distresses found.

View as Markdown

Send an image, or a location for TruTec to pull aerial imagery for, and get back a PASER rating (1 to 10) or a Pavement Condition Index (0 to 100). Each result lists the distresses found and a recommended treatment. Or send your own drone or EagleView imagery and TruTec rates the whole site section by section: see Choose your imagery.

Ratings follow PASER and ASTM D6433. They are AI estimates from imagery: a screening-level rating, not a field survey.

A rating usually takes 10 to 20 seconds. Set your HTTP timeout to at least 90 seconds.

Choose your imagery#

Imagery How to send it What you get
Google satellite (default) polygon, lat + lng, or address. Nothing else. One rating of one aerial frame.
Nearmap The same, plus "imagery_source": "nearmap". Needs a plan that includes Nearmap. One frame, sharper than Google, with the survey's capture_date.
EagleView, or other aerial imagery you license tiles: the same image_crs + tiles body you send to /detect/tiles (north-up tiles, each with its bounds). Or an exported GeoTIFF as ortho. The whole site, rated section by section and rolled up.
Drone A stitched orthomosaic as ortho or ortho_url, or raw drone photos as photos. The whole site, rated section by section and rolled up.
One photo (drone, phone or inspection camera) image or image_url. One rating of that photo.

The last three are your own imagery: TruTec doesn't need a plan add-on for them and doesn't keep the pixels. For EagleView and drone imagery, see Rate a whole site from drone or EagleView imagery.

Endpoints#

Rate PASER#

POST /v1/condition/paser

Permission: Read measurements

Rate PCI#

POST /v1/condition/pci

Permission: Read measurements

Both endpoints take the same fields, as JSON or as multipart/form-data for a file upload. In a form, send polygon as a JSON string.

Send one image source. If you send an image, location fields are ignored. Otherwise TruTec uses the first of polygon, lat + lng, address.

Name Type Required Description
image file or string One image source Your own photo: JPEG, PNG or WebP, up to 15 MB and 60 megapixels, at least 64 px. As a string, plain base64 or a data:image/...;base64, URI. Aerial, drone and ground photos all work.
image_url string One image source A public https:// URL to an image (up to 2,000 characters).
polygon array or object One image source The area to rate, as [[lat, lng], ...] (3 or more points) or a GeoJSON Polygon or Feature (GeoJSON order [lng, lat]). TruTec frames the aerial to it and rates only pavement inside it. Recommended when you have a boundary.
lat, lng number One image source Center point for the aerial.
address string One image source Street address, geocoded to a center point.
imagery_source string No google (default) or nearmap, when TruTec fetches the aerial. Nearmap uses the newest Nearmap survey at the point and needs a plan that includes Nearmap.
zoom integer No 16 to 21. By default, fits the polygon (up to 20), or 20 for a point.
pavement_type string No auto (default), asphalt or concrete.
notes string No Context for the rating, up to 1,000 characters, e.g. "Seal coated 2021, heavy truck traffic at the dock".
return_image boolean No Return the exact JPEG that was rated in image.jpeg_base64, with the polygon outlined. Not available with image_url.

One call rates one frame. A polygon up to about 120 m (400 ft) across is rated at full detail. Larger polygons are fitted at a lower zoom and lose crack-level detail, so split large properties into sections, or send drone or EagleView imagery and TruTec sections the site for you.

curl https://trutec.ai/api/v1/condition/pci \
  -H "X-API-Key: $TRUTEC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "polygon": [[30.40112, -97.72231], [30.40109, -97.72058], [30.39985, -97.72061], [30.39988, -97.72236]],
    "imagery_source": "nearmap"
  }'

Rate your own photo:

curl https://trutec.ai/api/v1/condition/paser \
  -H "X-API-Key: $TRUTEC_API_KEY" \
  -F "[email protected]" \
  -F "pavement_type=asphalt"

Python:

import os
import requests

resp = requests.post(
    "https://trutec.ai/api/v1/condition/paser",
    headers={"X-API-Key": os.environ["TRUTEC_API_KEY"]},
    json={"lat": 30.4005, "lng": -97.7215, "imagery_source": "nearmap"},
    timeout=120,
)
resp.raise_for_status()
result = resp.json()
print(result["paser"]["rating"], result["paser"]["label"], result["image"]["capture_date"])

Response#

Use paser.rating or pci.score. Everything else explains it.

{
  "rating_type": "paser",
  "rubric_version": "1.0",
  "paser": {
    "rating": 6,
    "label": "Good",
    "description": "Slight raveling and traffic wear; cracks 1/4\"–1/2\" open, some closer than 10 ft; ...",
    "recommended_treatment": "Crack fill and seal coat; sound structure.",
    "limited_by": [
      {"distress": "weathering", "severity": "medium", "density_pct": 70.0, "max_rating": 6, "rule": "Weathered surface, traffic wear"}
    ]
  },
  "pavement_type": "asphalt",
  "confidence": 0.6,
  "summary": "The lot is structurally sound with no visible potholes. The surface has oxidized to a light gray. A seal coat would help protect it.",
  "distresses": [
    {"type": "weathering", "label": "Weathering / oxidation", "severity": "medium", "density_pct": 70.0, "density_unit": "area", "where": "Most of the lot"},
    {"type": "raveling", "label": "Raveling", "severity": "low", "density_pct": 15.0, "density_unit": "area", "where": "Drive aisles"}
  ],
  "limitations": ["Tight or hairline cracks may not be visible at this resolution."],
  "image": {
    "source": "nearmap",
    "capture_date": "2026-03-14",
    "survey_id": "88f1e2a0-1234-5678-abcd-1234567890ab",
    "lat": 30.4004850,
    "lng": -97.7214700,
    "zoom": 19,
    "width": 1280,
    "height": 1280,
    "meters_per_pixel": 0.129,
    "outlined": true,
    "view": "aerial",
    "quality": "good",
    "visible_pavement_pct": 85
  },
  "request_id": "9b2f4c1e8a7d4e0f9c3b6a5d2e1f0a9b",
  "rated_at": "2026-10-12T15:04:11.512Z"
}

A PCI response has the same envelope with a pci block instead of paser:

"pci": {
  "score": 85,
  "label": "Satisfactory",
  "strategy": "Preventive maintenance",
  "color": "#4ade80",
  "recommended_treatment": "Crack fill, seal coat and spot repairs.",
  "method": "astm_d6433",
  "deducts": [
    {"distress": "weathering", "severity": "medium", "density_pct": 75.0, "deduct_value": 11.3}
  ]
}
Field Description
paser.rating PASER rating, 1 to 10, with label, description and recommended_treatment.
paser.limited_by The distresses holding the rating at this level. Empty when overall surface condition sets the rating.
pci.score PCI, 0 to 100.
pci.label, strategy, color PCI band: Good 86–100, Satisfactory 71–85, Fair 56–70, Poor 41–55, Very poor 26–40, Serious 11–25, Failed 0–10.
pci.method astm_d6433 for asphalt; visual_estimate for concrete.
pci.deducts The deduct value for each distress (asphalt).
pavement_type asphalt or concrete.
confidence 0 to 1, reflecting image quality and resolution.
summary Two or three plain sentences for a property manager.
distresses[] type, label, severity (low, medium, high), density_pct, density_unit and a plain-language where.
distresses[].density_unit area = % of rated pavement; linear = linear feet per 100 sq ft; pothole_area = % of area that is pothole; slabs = % of concrete slabs.
limitations What the image could not show.
image.source google, nearmap, upload or url.
image.capture_date The Nearmap survey's capture date. null for Google, which does not publish dates. Not present for your own images.
image.survey_id The Nearmap survey used. null for Google.
image.view, quality, visible_pavement_pct aerial, ground or other; good, fair or poor; how much pavement could be seen.
request_id Quote this when contacting support.
rated_at When the rating ran (UTC).

Rate a whole site from drone or EagleView imagery#

Send your own imagery (a drone capture, or EagleView or other aerial imagery you license) and TruTec rates the whole site, not one frame. It stitches the imagery by position and cuts the pavement into sections small enough to read at crack-level detail. Each section is rated on its own, and the sections roll up into one PASER or PCI weighted by area (the ASTM D6433 way to roll sample units up to a section). You get the site rating plus every section's rating, outline and distresses.

Use the same two endpoints. Send any of these in place of image:

Field Type Notes
ortho file, repeatable A stitched orthomosaic as a GeoTIFF, in any projection. This is the standard export from DroneDeploy, Pix4D, DJI Terra, Agisoft Metashape, Site Scan and WebODM. If your software exports the ortho as several GeoTIFF tiles, send them all; TruTec stitches them by position.
ortho_url string or list Public https:// link(s) that download the GeoTIFF, for example an S3 or Google Cloud presigned URL, or a Dropbox link ending in dl=1. Use a link for any file over 100 MB.
photos file, repeatable Raw drone photos taken straight down (up to 40), with their original metadata. TruTec places each photo from its GPS position, height above takeoff and heading, then stitches them. Works with DJI and other drones that record the same metadata.
photo_urls list Public https:// links to raw drone photos.
tiles list North-up tiles, each {"image_base64": "...", "bounds": {"north", "south", "east", "west"}} with WGS84 edges: the same body as /detect/tiles. Use it for EagleView or any aerial imagery you license. JPEG, PNG or GeoTIFF, up to 256 tiles, any zoom; tiles may overlap or leave gaps.
image_crs string With tiles: EPSG:3857 (the default; Web Mercator, as map tile servers serve tiles) or EPSG:4326.
bounds object Only for a JPEG or PNG ortho with no map position: its north-up edges as {"north", "south", "east", "west"} in WGS84.
polygon array or object Optional. The pavement to rate, as [[lat, lng], ...] or a GeoJSON Polygon, MultiPolygon, Feature or FeatureCollection. In a feature's properties, "pavement_type": "concrete" rates that area as concrete and "exclude": true cuts it out (islands, buildings). With no polygon, TruTec rates the pavement across the imagery's whole footprint. Any part of the polygon outside your imagery is rated from imagery_source.
async boolean true answers 202 at once with a poll URL instead of waiting.

pavement_type and notes work as for one image. return_image and zoom don't apply.

Resolution. Drone imagery at 1–3 cm per pixel is ideal. Aerial survey imagery such as EagleView (usually 5–10 cm) rates well but shows less of the fine cracking. Finer than about 1 cm adds file size, not detail.

Limits. Up to 40 files or links (or 256 tiles) and 1.5 GB of imagery per request, one property (up to 2 km across). A request body is limited to 100 MB, uploads and tiles included (base64 adds a third), so send bigger orthos as ortho_url.

Timing. A site takes from 30 seconds to a few minutes, depending on its size. A normal call waits up to 80 seconds. If the site isn't finished by then, it answers 202 with a poll_url. Poll GET /api/v1/condition/runs/{id} every 5–10 seconds until status is done (the body is the full site rating) or failed (with error and code).

Rate a stitched ortho, outlining the lot:

curl -X POST https://trutec.ai/api/v1/condition/pci \
  -H "X-API-Key: $TRUTEC_API_KEY" \
  -F "[email protected]" \
  -F 'polygon=[[27.43381, -82.42694], [27.43381, -82.42615], [27.43316, -82.42615], [27.43316, -82.42694]]'

Python, with a large ortho behind a presigned link, polling for the result:

import os, time
import requests

API = "https://trutec.ai"
headers = {"X-API-Key": os.environ["TRUTEC_API_KEY"]}

run = requests.post(f"{API}/api/v1/condition/pci", headers=headers, timeout=120, json={
    "ortho_url": "https://my-bucket.s3.amazonaws.com/flights/site-ortho.tif?X-Amz-Signature=...",
    "async": True,
}).json()
while run.get("status") in ("queued", "running"):
    time.sleep(10)
    run = requests.get(API + run["poll_url"], headers=headers, timeout=60).json()

if run["status"] == "done":
    print("Site PCI", run["pci"]["score"], run["pci"]["label"])
    for s in run["sections"]:
        if s["status"] == "rated":
            print(s["label"], s["pci"]["score"], s["area_sqft"], "sq ft")
else:
    print(run["code"], run["error"])

EagleView tiles: send the same body you send to /detect/tiles. Add polygon to rate only the lot:

curl -X POST https://trutec.ai/api/v1/condition/pci \
  -H "X-API-Key: $TRUTEC_API_KEY" \
  -H "Content-Type: application/json" \
  --data-binary @tile-request.json
{
  "image_crs": "EPSG:3857",
  "tiles": [
    {"image_base64": "<base64 JPEG or PNG>",
     "bounds": {"north": 27.43412, "south": 27.43347, "east": -82.42657, "west": -82.42733}},
    {"image_base64": "<base64 JPEG or PNG>",
     "bounds": {"north": 27.43412, "south": 27.43347, "east": -82.42581, "west": -82.42657}}
  ],
  "polygon": [[27.43405, -82.42725], [27.43405, -82.42590], [27.43352, -82.42590], [27.43352, -82.42725]]
}

Raw drone photos instead of an ortho:

curl -X POST https://trutec.ai/api/v1/condition/paser \
  -H "X-API-Key: $TRUTEC_API_KEY" \
  -F "photos=@DJI_0101.JPG" -F "photos=@DJI_0102.JPG" -F "photos=@DJI_0103.JPG"

Site response#

The envelope matches a single-image rating. paser / pci hold the site rating, and the site fields are added:

{
  "id": 4182,
  "status": "done",
  "rating_type": "pci",
  "rubric_version": "1.0",
  "pci": {"score": 74, "label": "Satisfactory", "strategy": "Preventive maintenance",
          "color": "#4ade80", "recommended_treatment": "Crack fill, seal coat and spot repairs.",
          "method": "astm_d6433"},
  "pavement_type": "asphalt",
  "confidence": 0.82,
  "summary": "38,400 sq ft of pavement was rated in 6 sections. The property averages PCI 74 (Satisfactory). ...",
  "area_sqft": 38400.0,
  "rated_area_sqft": 38400.0,
  "coverage_pct": 100.0,
  "sections_rated": 6,
  "distresses": [
    {"type": "longitudinal_transverse_cracking", "label": "Longitudinal and transverse cracking",
     "severity": "medium", "density_pct": 6.1, "density_unit": "linear", "affected_sqft": null,
     "sections": ["A", "B", "D"]}
  ],
  "plan": [
    {"name": "Preventive maintenance", "area_sqft": 31200.0, "pct": 81.3, "sections": ["A", "B", "C", "E", "F"],
     "treatments": ["Crack fill, seal coat and spot repairs."], "note": "..."},
    {"name": "Rehabilitation", "area_sqft": 7200.0, "pct": 18.7, "sections": ["D"], "treatments": ["..."], "note": "..."}
  ],
  "by_band": [{"label": "Good", "low": 86, "high": 100, "area_sqft": 0.0, "pct": 0.0, "sections": []}, "..."],
  "sections": [
    {"key": "A", "label": "Section A", "status": "rated", "area_sqft": 6420.5,
     "center": [27.43372, -82.42671],
     "geometry": {"type": "MultiPolygon", "coordinates": [[[[-82.42694, 27.43381], "..."]]]},
     "pci": {"score": 81, "label": "Satisfactory", "method": "astm_d6433", "deducts": ["..."]},
     "pavement_type": "asphalt", "confidence": 0.85, "summary": "...", "distresses": ["..."],
     "image": {"source": "drone", "meters_per_pixel": 0.031, "drone_pct": 100, "quality": "good",
               "visible_pavement_pct": 88}}
  ],
  "image": {"source": "drone", "pieces": 1, "kinds": {"geotiff": 1}, "meters_per_pixel": 0.021,
            "capture_date": "2026-10-21",
            "bounds": {"north": 27.43412, "south": 27.43281, "east": -82.42581, "west": -82.42733},
            "inputs": [{"name": "site-ortho.tif", "type": "geotiff", "width": 7210, "height": 6240,
                        "meters_per_pixel": 0.021, "bounds": {"...": "..."}, "capture_date": "2026-10-21"}],
            "rated_area": "outline"},
  "request_id": "<id>",
  "rated_at": "<ISO 8601 UTC timestamp>"
}
Field Meaning
id The site rating's id. Poll GET /api/v1/condition/runs/{id}.
pci.score / paser.rating The site rating: the area-weighted mean of the rated sections.
sections[] Each section's own rating (pci or paser), distresses, summary and outline (geometry, GeoJSON [lng, lat]). A section with status: "not_rated" has a reason.
distresses[] The site-wide inventory, with density weighted by section area. sections lists where each was seen.
plan Treatment groups and their share of the rated area.
by_band (PCI) / by_rating (PASER) Area at each PCI band or PASER rating.
area_sqft Area of the outline (or of the imagery's footprint when no polygon was sent).
rated_area_sqft Pavement area that was rated. With no polygon, it counts only the pavement visible in each section, not roofs or grass.
image.rated_area outline (your polygon) or imagery_footprint.
image.source tiles when everything came as tiles, else drone.
sections[].image.source drone or tiles (your imagery), or google / nearmap where the outline ran past it. drone_pct is how much of that section your imagery covered.

A whole site counts as one call on your API key, however many sections it has.

Drone and EagleView imagery errors#

HTTP code When
400 not_georeferenced A file has no map position. Export the ortho as a GeoTIFF, add bounds, or send raw photos as photos.
400 invalid_ortho A file or tile can't be read as imagery, is an elevation model (DSM/DTM), or is paletted.
400 too_many_pieces More than 40 files and links, or more than 256 tiles.
413 imagery_too_large Over 1.5 GB of imagery.
422 download_failed A link didn't download a file (private, expired, or a web page instead of the file).
422 photo_not_placeable A raw photo lacks the metadata to place it (GPS, height, heading) or wasn't taken straight down. The error names the file.
422 outside_imagery The polygon doesn't overlap your imagery.
422 site_too_large Your imagery spans more than 2 km.
422 no_pavement_visible No section had ratable pavement.
503 busy Too many drone sites are being rated at once. Retry in a minute.

Failed site ratings are not counted.

Accuracy#

  • Satellite imagery cannot resolve hairline cracks, so aerial ratings can read high on lots with fine cracking. Nearmap, EagleView, drone imagery or ground photos show more.
  • Crack width and rut depth can't be measured from above. Their severity is judged from what is visible and noted in limitations.
  • Cars, shadows and trees hide pavement. visible_pavement_pct and confidence show how much could be assessed.
  • Aerial imagery may be months or years old. Use Nearmap for a dated capture, or upload a current photo.

Usage#

Each successful rating counts as one call on your API key, and a drone site counts as one call however many sections it has. Errors are not counted.

Errors#

Errors return {"error": "<message>", "code": "<code>"}. 502 and 503 are safe to retry.

Status code When
400 missing_image No image and no location sent.
400 invalid_request Bad polygon, lat/lng, zoom, imagery_source, pavement_type or image_url.
400 invalid_image The image is empty, can't be decoded, or is under 64 px.
403 forbidden The key lacks Read measurements.
403 upgrade_required Nearmap requested on a plan without Nearmap.
413 image_too_large Over 15 MB or 60 megapixels.
422 no_pavement_visible Nothing ratable in the image.
422 no_imagery_coverage Nearmap has no survey at that location. Retry with google.
422 address_not_found The address could not be found.
422 image_rejected The image could not be rated. Try a clearer or closer image.
500 imagery_unavailable Imagery is not configured on the server.
502 imagery_unavailable, geocode_failed, rating_failed A step failed. Retry.
503 service_unavailable Temporarily unavailable. Retry after a minute.

Authentication errors (401), plan errors (402/403) and usage-limit errors (429) use the standard API error format without code.