Giter VIP home page Giter VIP logo

googleapi's Introduction

Google Api

Build status NuGet NuGet

Seamless Google Api integrations.
Google Maps, Places, Roads, Search and Translate.

Feel free to contribute, throw questions and report issues. I usually respond fast (24-48 hours).


Getting started...

The library is extremely easy to consume and use.
Each api implementation consists of a request and a response, as well as a generic facade operation to execute the request and return the response. The request has properties reflecting the parameters supported, and the response represents the object model for the returned json.

The example below, simply populates a request, invokes the facade operation, and recieves the response in return.

TRequest request = new TRequest();
TResponse response = await {Api}.{Action}.QueryAsync<TRequest, TResponse>(request);

A few other noteworthy members.

Request
var uri = request.GetUri(); // Gets the full request uri, including query parameters.
var params = request.GetQUeryStringParameters(); // Gets a list of all the added parameters.
Response
response.RawJson // The raw json returned by Google.
response.RawQueryString // The querystring sent to Google when invoking the request.

Supported Operations

The following operations are supported.

Google Maps
  • Directions
  • Distance Matrix
  • Elevation
  • Geocode
    • Place
    • Address
    • Location (reverse)
    • Plus Code
  • Geolocation
  • Roads
    • Nearest Roads
    • Snap To Roads
    • Speed Limits
  • Time Zone
  • Street View
  • Static Maps
Google Places
  • Place Search
    • Find
    • Near By
    • Text
  • Place Details
  • Place Photos
  • Place Autocomplete
  • Query Autocomplete
Google Search
  • Web
  • Image
  • Video (beta)
    • Channels
    • Playlists
    • Vidoes
Google Translate
  • Detect
  • Languages
  • Translate
Google Functions
  • MergePolyLine
  • EncodePolyLine
  • DecodePolyLine

Running Test Suite

Running the test suite is simple.

The test project stores settings related to your Google subscription (free or paid) in application.default.json. Most importantly, the ApiKey, used to identify the Google subscription.

{ 
  "ApiKey": "",
  "CryptoKey": "",
  "ClientId": "",
  "SearchEngineId": "",
}

More information about generating a key can be found here: https://console.developers.google.com/


googleapi's People

Contributors

vivet avatar egbertn avatar mfeingol avatar bottlecapdave avatar ewhoambra avatar ninjacarr avatar jabez007 avatar mcsym28 avatar prologh avatar vineus avatar wormerr avatar miguelcrpinto-dept avatar

Watchers

James Cloos avatar

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.