Seemless 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).
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.
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.RawJson // The raw json returned by Google.
response.RawQueryString // The querystring sent to Google when invoking the request.
The following operations are supported.
- 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
- Place Search
- Find
- Near By
- Text
- Place Details
- Place Photos
- Place Autocomplete
- Query Autocomplete
- Web
- Image
- Video (beta)
- Channels
- Playlists
- Vidoes
- Detect
- Languages
- Translate
- MergePolyLine
- EncodePolyLine
- DecodePolyLine
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/