Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

5
  • If Latitude and Longitude are not strings initially then what type are they? Commented Jan 28, 2016 at 20:10
  • did you try just taking off the Double.Parse instead? Commented Jan 28, 2016 at 20:11
  • When I tried with your code it shows error that - The best overloaded method match for 'double.Parse(string)' has some invalid arguments and another error Argument 1: cannot convert from 'double' to 'string'. I used this api to get geo information en.wikipedia.org/w/… Commented Jan 28, 2016 at 20:15
  • 1
    if Latitude is already a double, then you dont need to parse it in the first place.. did you try setting Latitude = Latitude and Longitude = Longitude without using double.parse? Commented Jan 28, 2016 at 20:32
  • @JamieD77 Thank you for your information. It is also working in this way if I set Latitude = Latitude and Longitude = Longitude. Commented Jan 28, 2016 at 20:39