user94857

Results 7 comments of user94857

I managed to fix the problem. It has to do with: ``` private string BingUrlEncode(string toEncode) { if (string.IsNullOrEmpty(toEncode)) return string.Empty; return WebUtility.UrlEncode(toEncode); } ``` basically what's happening is the...

``` using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Net.Http; using System.Runtime.Serialization.Json; using System.Threading.Tasks; using Geocoding; using Geocoding.Microsoft; using Geocoding.Microsoft.Json; using Address = Geocoding.Address; using Location = Geocoding.Location; namespace...

you'll need this, was a pain to write but makes things easier :) ``` public enum BingCulture { [Description("NotSpecified")] NotSpecified, [Description("af")] Afrikaans, [Description("sq")] Albanian, [Description("am")] Amharic, [Description("ar-sa")] Arabic_Saudi_Arabia, [Description("hy")] Armenian,...

and this was even more of a pain: ``` public enum BingUserRegion { [Description("NotSpecified")] NotSpecified, [Description("AF")] Afghanistan, [Description("AX")] Aland_Islands, [Description("AL")] Albania, [Description("DZ")] Algeria, [Description("AS")] American_Samoa, [Description("AD")] Andorra, [Description("AO")] Angola, [Description("AI")]...

and this: ``` public static class EnumUtil { public static T StringToEnum(string name) { return (T)Enum.Parse(typeof(T), name); } public static string ToEnumString(this Enum value) { var fi = value.GetType().GetField(value.ToString()); var...

and apologies about posting code on here, it's just that i'm not familiar with forks and github and all that fun stuff. Not my thing