Geocoding.NET ত সন্ধান আৰম্ভ কৰাৰ আগতে GoogleGeocoder.Proxy ছেট কৰক
Maps API key ৰ পৰা সুকীয়াকৈ geocoder-অধীন WebProxy আৰু account configure কৰক।
var geocoder = new Geocoding.Google.GoogleGeocoder(apiKey)
{
Proxy = new System.Net.WebProxy("http://proxy.example:8080")
{
Credentials = new System.Net.NetworkCredential(
proxyUser, proxyPassword)
}
};এপ্লিকেচনৰ API key আৰু মধ্যস্থ account ব্যৱহাৰ কৰক, তাৰ পিছত এই configure কৰা geocoder ৰ জৰিয়তে GeocodeAsync বা ReverseGeocodeAsync কল কৰক। প্ৰমাণীকৰণ নোহোৱা proxy ৰ বাবে Credentials বাদ দিয়ক। তেনে ক্ষেত্ৰত HTTP proxy তালিকায়ে candidates যোগান ধৰে যেতিয়া ৰাজহুৱা মধ্যস্থৰ জৰিয়তে ৰাজহুৱা geocoding অনুৰোধ অনুমোদিত হয়।
Geocoding.NET ৰ অনুৰোধ পথে HttpClientHandler সৃষ্টি কৰি ইয়াৰ ৰাজহুৱা IWebProxy property assign কৰে। অন্য ঠাইত configure কৰা ভিন্ন HttpClient এ সেই পথ প্ৰতিস্থাপন নকৰে।
মধ্যস্থ 407 ক Google ৰ invalid-key বা denied-request response ৰ পৰা পৃথক ৰাখক। Integrated authentication ৰ বাবে Maps key ক proxy password হিচাপে নিদি সেই proxy ৰ বাবে উপযুক্ত Windows identity বা domain ব্যৱহাৰ কৰক।