I am running the Mongodb and version (1.5) version 2.06 of the C # driver supplied by 10Gen.
I have to coordinate latitude and longitude on one of my units, so I can query the query using geographic or query.
I am adding a strongly type space object to my unit and then on an index space object that is shutting down my unit, but I can not get any GeoNear queries to work.
This My Location Unit looks like this.
public class space {[BSend default value (faucet)) Public taps qualified & lt; Double & gt; Loan {receive; Set; } [BSNdFalVA value (faucet)] Public taps qualified & lt; Double & gt; Lat {get; Set; }} In this question my unit is visible.
Public square SomeEntity {public string field 1 {get; Set;} // More fields here ... Public Location Loc {get; Set;}} I have found this link and to see that my location field should be an array. What does my unit look like, like an array field, some differences, instead of my place object?
I know it's simple, I can not understand it!
You can try: Public square SomeEntity {public string field 1 {get; Set;} // More fields here ... public double [] Loc {get; However, your existing class should have been working (while Arrays is recommended that the only real requirement is that the object contains two numbers). I might be able to faucet and lieutenant; Double & gt; And just use double instead. What was your geo question not working?
Comments
Post a Comment