GoogleGeocoder.Proxy ን ከ Geocoding.NET ጥያቄውን ከመጀመሩ በፊት ያዘጋጁ
የጂኦኮደሩ የራሱ የሆነውን WebProxy እና መለያ ከMaps API ቁልፍ ለየብት አድርገው ያዋቅሩ።
var geocoder = new Geocoding.Google.GoogleGeocoder(apiKey)
{
Proxy = new System.Net.WebProxy("http://proxy.example:8080")
{
Credentials = new System.Net.NetworkCredential(
proxyUser, proxyPassword)
}
};የመተግበሪያውን API ቁልፍ እና የመካከለኛውን መለያ ይጠቀሙ፣ ከዚያ GeocodeAsync ወይም ReverseGeocodeAsync ን በዚህ የተዋቀረ ጂኦኮደር በኩል ይደውሉ። ማረጋገጫ ለማይፈልግ መካከለኛ Credentials ን ይተዉት። በዚያ ሁኔታ የህዝብ ጂኦኮዲንግ ጥያቄዎች በህዝብ መካከለኛዎች ሲፈቀዱ የHTTP ፕሮክሲ ዝርዝር እጩዎችን ያቀርባል።
የ Geocoding.NET የጥያቄ መንገድ HttpClientHandler ይፈጥራል እና የህዝብ IWebProxy ባህሪውን ይመድባል። በሌላ ቦታ የተዋቀረ ሌላ HttpClient ያንን መንገድ አይተካም።
የመካከለኛውን 407 ከGoogle የተሳሳተ ቁልፍ ወይም የተከለከለ ጥያቄ ምላሽ ለየብት አድርገው ያስቀምጡ። ለተቀናጀ ማረጋገጫ፣ የMaps ቁልፍን ለፕሮክሲ የይለፍ ቃል ከመተካት ይልቅ ለዚያ ፕሮክሲ ተስማሚ የሆነውን የWindows መለያ ወይም ጎራ ይጠቀሙ።