Skip to main content

GET /api/report

Requires Bearer token.
Generate a branded PDF location report. Query parameters
NameTypeRequiredDefaultDescription
latfloatLatitude.
lngfloatLongitude.
namestringLocation ReportReport title / location name.
profilestringgeneralScoring profile.
clientstringClientClient name for the report header.
Example
curl "https://axiomlocus.io/api/report?lat=37.7749&lng=-122.4194&name=Mission+District" \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -o report.pdf
Response
# Binary PDF response
Content-Type: application/pdf
Content-Disposition: attachment; filename="axiom-locus-report-mission-district.pdf"

GET /api/places-photo

Proxy for business photos. Supports both Places API (New) resource names and legacy photo references returned by /api/location-data. Query parameters
NameTypeRequiredDefaultDescription
refstringPhoto reference string from POI data. Must match either a Places API (New) resource name (places/{place_id}/photos/{photo_id}) or a legacy photo reference (8–2048 characters, A–Z, a–z, 0–9, _, or -). Other formats return 400 Invalid ref format.
wint100Image width in pixels. Values are clamped to the range 11600; non-numeric values fall back to the default.
Example
curl "https://axiomlocus.io/api/places-photo?ref=Aap_uE...&w=200" -o photo.jpg
Response
# Binary JPEG response
Content-Type: image/jpeg