C# Class Engage.Dnn.Locator.YahooProvider

A MapProvider for Yahoo! Maps
Inheritance: MapProvider
Afficher le fichier Open project: EngageSoftware/Engage-Locator

Méthodes publiques

Méthode Description
GenerateMapScriptCore ( ScriptManager scriptManager, MapType mapType, string mapSectionId, string currentLocationSpanId, string noLocationSpanId, string instructionSpanId, string directionsLinkId, string directionsSectionId, LocationCollection locations, bool showAllLocationsOnLoad ) : void

Registers the JavaScript to display the map.

GeocodeLocation ( string street, string city, int regionId, string zip, int countryId ) : GeocodeResult

Gets the latitude and longitude of the given location.

IsKeyValid ( ) : bool

Determines whether this provider's is in a valid format.

Private Methods

Méthode Description
ConvertMapType ( MapType mapType ) : string

Converts mapType into its Yahoo! Maps enumeration value.

GeocodeLocation ( string queryParams, string apiKey ) : YahooGeocodeResult

Gets the geocode result for the given queryParams

GetCityStateParams ( string street, string city, string regionAbbreviation, string zip ) : string

Gets the QueryString parameters for the given location as a collection of structured parameters.

GetCountryName ( int countryId ) : string

Gets the name of the country with the given ID.

GetFreeformParam ( string street, string city, string regionAbbreviation, string zip, string countryName ) : string

Gets the QueryString parameter for the given location as a single, unstructured value.

GetYahooAccuracyCode ( string accuracyValue ) : YahooAccuracyCode

Converts the given accuracy code into a YahooAccuracyCode value

Method Details

GenerateMapScriptCore() public méthode

Registers the JavaScript to display the map.
public GenerateMapScriptCore ( ScriptManager scriptManager, MapType mapType, string mapSectionId, string currentLocationSpanId, string noLocationSpanId, string instructionSpanId, string directionsLinkId, string directionsSectionId, LocationCollection locations, bool showAllLocationsOnLoad ) : void
scriptManager ScriptManager The page's script manager.
mapType MapType Type of the map.
mapSectionId string The ID of the section (div) on the page in which the map should be created.
currentLocationSpanId string The ID of the span showing the current location text.
noLocationSpanId string The ID of the span shown when no location is selected.
instructionSpanId string The ID of the span with driving directions, etc.
directionsLinkId string The ID of the link to driving directions.
directionsSectionId string The ID of the section (div) with driving directions text.
locations LocationCollection The list of locations to display.
showAllLocationsOnLoad bool if set to true shows the map with all locations on it by default.
Résultat void

GeocodeLocation() public méthode

Gets the latitude and longitude of the given location.
public GeocodeLocation ( string street, string city, int regionId, string zip, int countryId ) : GeocodeResult
street string The street of the address.
city string The city of the address.
regionId int The ID of the region of the address.
zip string The zip code of the address.
countryId int The ID of the country of the address
Résultat GeocodeResult

IsKeyValid() public méthode

Determines whether this provider's is in a valid format.
public IsKeyValid ( ) : bool
Résultat bool