using Lucuma.Libs.Config; using Lucuma.Helper;

Mar 6, 2013 at 7:18 PM
Edited Mar 6, 2013 at 7:20 PM
I downloaded the source code, and created a WSPBuilder Project in VS 2008 with ASP.NET 3.5

I am getting a bunch of errors related to converting IEnumerables to string [] such as:

Cannot implicitly convert type 'System.Collections.Generic.IEnumerable<Newtonsoft.Json.Linq.JToken>' to 'string[]'
Mar 6, 2013 at 7:23 PM
I fixed the errors I encountered by adding .ToArray() to the end of those places.
Mar 6, 2013 at 7:25 PM
Still getting this error though:

Cannot implicitly convert type 'Newtonsoft.Json.Linq.JToken[]' to 'string[]'
C:\Projects\multigeocoder\MultiGeoCoder\GeoCode\Libs\BingMap.cs 68 62

string [] stringValues = loc["address"].Values().Where(add => !string.IsNullOrEmpty(add.Value<string>())).ToArray();
Mar 8, 2013 at 6:32 PM
Ok, I've fixed this by calling JToken.ToString()

This library great, I am impressed at the ease of use.

I added some properties to
public class Location
    public string Street { get; set; }
    public string City { get; set; }
    public string State { get; set; }
    public string County { get; set; }
    public string Country { get; set; }
    public string PostalCode { get; set; }
And then I updated the classes GoogleGmap and OpenStreetMap to populate them. Works like a charm!

Thanks to the author.
Mar 8, 2013 at 7:41 PM
Thanks for the feedback! The library is just in alpha so I'll make those updates or if you want to make a pull request.