GithubHelp home page GithubHelp logo

caelinsutch / civic-information-api-graphql-wrapper Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 1001 KB

Wrapper around the Google Civic Information REST API for GraphQL

Home Page: https://civics-api.azurewebsites.net/

License: GNU General Public License v3.0

TypeScript 92.78% Dockerfile 7.22%

civic-information-api-graphql-wrapper's Introduction

civic-information-api-graphql-wrapper

Wrapper around the Google Civic Information REST API for GraphQL. Playground is publically accessible to easily explore available data.

Getting Started

Create a Google API Key to use this API. Open up the GraphQL data playground here to see the data that's available.

representativeInfoByAddress(
    apiKey: String! // API Key from Google
    address: String! // Address in String format, ex. 1532 John Cir, My Town California
    includeOffices: Boolean // Whether to return information about offices and officials. If false, only the top-level district information will be returned. (Default: true)
    level: Levels // A list of office levels to filter by. Only offices that serve at least one of these levels will be returned. Divisions that don't contain a matching office will not be returned.
    role: Role // A list of office roles to filter by. Only offices fulfilling one of these roles will be returned. Divisions that don't contain a matching office will not be returned.
)

Levels

Acceptable values are:

  • "administrativeArea1"
  • "administrativeArea2"
  • "country"
  • "international"
  • "locality"
  • "regional"
  • "special"
  • "subLocality1"
  • "subLocality2"

Roles

A list of office roles to filter by. Only offices fulfilling one of these roles will be returned. Divisions that don't contain a matching office will not be returned.

Acceptable values are:

  • "deputyHeadOfGovernment"
  • "executiveCouncil"
  • "governmentOfficer"
  • "headOfGovernment"
  • "headOfState"
  • "highestCourtJudge"
  • "judge"
  • "legislatorLowerBody"
  • "legislatorUpperBody"
  • "schoolBoard"
  • "specialPurposeOfficer"

Available Information

Currently, the Representative Information by address API is exposed, allowing the access of local government officials and their related data (email, name, socials, etc.)

civic-information-api-graphql-wrapper's People

Contributors

caelinsutch avatar dependabot[bot] avatar

Stargazers

 avatar

Watchers

 avatar  avatar

civic-information-api-graphql-wrapper's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.