@api-emulator/google-maps
v0.2.2
Published
Google Maps Places APIs provide text search, nearby search, autocomplete, details, and field-mask workflows.
Readme
@api-emulator/google-maps
Google Maps Places APIs provide text search, nearby search, autocomplete, details, and field-mask workflows.
Use this emulator for local tests, CI, and offline agent runs. It keeps your tests separate from the production API.
Start the emulator
- Install the package.
npm install @api-emulator/google-maps- From this registry, start the emulator.
npx -p api-emulator api --plugin ./providers/@google-maps/api-emulator.mjs --service google-mapsThe emulator uses the local URL that api-emulator prints. Set your client base URL to this local URL.
Supported API
POST /v1/places:searchTextPOST /v1/places:searchNearbyPOST /v1/places:autocompleteGET /v1/places/:placeId/photos/:photoId/mediaGET /v1/places/:placeIdGET /google-maps/inspect/state
Coverage
- Level:
smoke-only - Meaning: A smoke test starts the emulator and checks its main behavior.
- Evidence: a direct smoke test exists, but a conformance manifest does not exist.
Credentials
Use a fixed bearer token or API key in each test. The emulator does not send these credentials to the provider.
Test data
Add repeatable test data to the provider configuration.
google-maps:
# Add provider-specific seed state here.