GoogleMapService Class |
Namespace: NetQuarry.GoogleGeocoder
The GoogleMapService type exposes the following members.
Name | Description | |
---|---|---|
GoogleMapService | Initializes a new instance of the GoogleMapService class |
Name | Description | |
---|---|---|
APIVersion |
Gets/sets the version of the Google Maps API to use. If no specific version is specified then
no specific version is requested.
Currently, when specified, this is used for the value of the "v" query parameter when loading the Google Maps API script.
| |
Application |
Gets or Sets the IAppContext object for the service.
(Inherited from ServiceBase.) | |
Attributes | Gets/Sets the service attributes. (Inherited from ServiceBase.) | |
Category | Gets/Sets the service category. (Inherited from ServiceBase.) | |
ClientID |
The GoogleMaps client ID.
| |
ComponentID | Gets/Sets the service component ID. (Inherited from ServiceBase.) | |
ID | Gets/Sets the service ID. (Inherited from ServiceBase.) | |
Name | Gets/Sets the service name. (Inherited from ServiceBase.) | |
PrivateKey |
The application-specific GoogleMaps key required for the GoogleMaps non-public API.
| |
Properties | Gets the service's configuration properties (Inherited from ServiceBase.) | |
Type | Gets/Sets the service type. (Inherited from ServiceBase.) | |
UseAPIKeyAuthentication |
Gets/sets whether or not the service should use an API key to authenticate with the Google Maps API.
When specified, this will use the value in PrivateKey as the API key for authentication. This is an alternative
to using the PrivateKey + ClientID method of authentication (which requres the use of a Google API Premium Account).
| |
UsePublicAPI |
Gets/sets whether or not the service should use the Google Maps public API.
The public API is supported for testing and prototyping. The Google Maps API terms of use
prohibits use of the public API on sites that are not generally accessible without a fee,
or that operate solely on an internal network or other closed community.
Google Maps terms of use: https://developers.google.com/maps/terms?hl=en
|
Name | Description | |
---|---|---|
Clone |
Returns a copy of this object
(Inherited from ServiceBase.) | |
Equals | (Inherited from Object.) | |
Finalize | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) | |
GetCoordinates |
Uses the GoogleMaps API to get the longitude and latitude for the specified address.
| |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
OnWebhook |
Handles an invocation of a "webhook" event for the service.
You should implement this event if you want your service to handle webhooks through the standard platform webhook wiring.
The raw wiring for the webhook would look like handler.ashx?req=webhook&service=sss&appkey=aaa&token=ttt where sss is
the name of the service, aaa is the application key, and ttt is the authentication token.
When wired up in the manner, the platform will instantiate an IAppContext object, authenticate the request based on
the provided token, obtain an instance of the service from the Services collection, and invoke this
method on the service.
If the webhook is wired up in this manner, you must override the base implementation of this method or an exception will be thrown.
(Inherited from ServiceBase.) | |
ReverseGeocode(Decimal, Decimal, String) |
Uses the GoogleMaps API to reverse-geocode the specified latitude and longitude and returns the corresponding address information.
For a particular latitude/longitude this can vary depending on the locationType specified.
Examples of location types include street_address, establishment, light_rail_station, point_of_interest, transit_station as well as many others.
When performing the reverse-geocode, an attempt is made to find the address for the locationType if one is specified.
If none is specified, or no address is found for the that locationType, then a second attempt is made to find any address
for the specified coordinates.
| |
ReverseGeocode(Double, Double, String) |
Uses the GoogleMaps API to reverse-geocode the specified latitude and longitude and returns the corresponding address information.
For a particular latitude/longitude this can vary depending on the locationType specified.
Examples of location types include street_address, establishment, light_rail_station, point_of_interest, transit_station as well as many others.
When performing the reverse-geocode, an attempt is made to find the address for the locationType if one is specified.
If none is specified, or no address is found for the that locationType, then a second attempt is made to find any address
for the specified coordinates.
| |
ServiceLoaded |
Called when the service is loaded.
(Overrides ServiceBaseServiceLoaded.) | |
ToString | (Inherited from Object.) |
Name | Description | |
---|---|---|
EqualValue |
Determines if the object value is equal to another object. If the two objects are null, then this returns true.
There is special handling for guid comparisons (since a guid could be a string formatted in up to 3 different ways).
If the special guid handling is not performed, then the object.Equals method is used.
(Defined by EAPUtil.) |