agentleFS
geoai-latamgeoai-latam/SKILL_JS5_ARCGIS/skills/arcgis-rest-services/AGENTS.md

SKILL_JS5_ARCGIS / arcgis-rest-services

AGENTS.md1 starsChanged 6 months agoMITView on GitHub

Quick-reference for location services (SDK 5.1). Read before calling REST endpoints.

The file

Files
AGENTS.md

Agent Guide: arcgis-rest-services

Quick-reference for location services (SDK 5.1). Read before calling REST endpoints.

Quick Decision Tree

  1. Geocode? → locator.addressToLocations / locationToAddress.
  2. Route? → route.solve + new RouteParameters({ stops }) (FeatureSet or Collection<Stop>).
  3. Places/POI? → places.queryPlacesNearPoint(params) (no URL).
  4. Standalone query? → query.executeQueryJSON(layerUrl, q), with the /0 layer index in layerUrl.

Setup Checklist

  • esriConfig.apiKey before calling geocode-api / route-api / places.
  • RouteParameters instance, never a plain object or raw coordinates.
  • Layer index in query URLs; returnGeometry: true if you draw; check exceededTransferLimit.
  • outFields on geocoding if you read attributes; guard empty candidate arrays.

Anti-patterns (one-liner reminders)

  • ❌ World service without a key: a sign-in dialog and a promise that never settles (not a 401).
  • ❌ Raw stops: TypeError: t.toJSON is not a function.
  • ❌ Querying the service root: 0 features, no error.
  • ❌ Expecting directions without returnDirections: true.

Files in This Skill

  • SKILL.md / SKILL.es.md — full guides
  • references/api-detail.md — route / locator / places / query
  • references/examples.md — geocode / route / query
  • references/pitfalls.md — extended troubleshooting
  • scripts/snippet-route.ts, snippet-locator.ts

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.