Skip to content

shabbir135/openapi-specification

 
 

Repository files navigation

Google Maps Platform OpenAPI3 Specification

Build Release GitHub contributors semantic-release

Description

An OpenAPI specification for Google Maps Platform APIs.

Note: This specification is a work in progress and likely missing important components and APIs.

Note: Breaking changes are likely when additional APIs are added and shared components are updated.

API Status
Elevation Complete
GeoCoding Complete
GeoLocation Complete
Distance Complete
Roads Complete
Time Zone Complete
Directions Complete
Places Complete
Street View Complete
Maps Static Not Started

Note: New APIs will be documented using Google Discovery documents and Protobuf files.

Run in Postman

Development

The repository makes use of Bazel to generate outputs from the specification and sample requests.

Build and test

  1. npm run build

    This generates the following outputs in the dist folder:

    • YAML file containing OpenAPI3 specification
    • JSON file containing OpenAPI3 specification
    • Structure Markdown documents for specification objects
    • Code snippets in multiple languages for sample requests

    Note: The dist/ folder is included in this repo and should be updated with all changes.

    Note: If a documentation item is not generated, be sure it is included in the appropriate index.yml file.

  2. npm run build:responses (optional)

    Note: This is an optional step requiring an API key. Set the GOOGLE_MAPS_API_KEY environmental variable before running. Hint: Use a .bazelrc.user file at the root of this project.

    Note: This step only needs to run when the generation code or sample requests have been updated.

    Note: The geolocation request that only provides an IP is not deterministic and skipped in the binary executed.

  3. npm run test

About

OpenAPI specification for Google Maps Platform API

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 86.1%
  • Starlark 13.9%