View Single Post

  #7 (permalink)  
Old 01-10-2005
Anonymous Anonymous is offline
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
Code:
oResults=oMap.FindAddressResults(@street,@city,"" ,@state, @zip, @country);
				string resQuality=oResults.ResultsQuality.ToString();
				if( resQuality== "geoFirstResultGood" || resQuality=="geoAmbiguousResults")
				{
					foreach (object o in oResults)
					{
						MapPoint.Location oLoc =o as MapPoint.Location;
						if(oLoc!=null)
						{
							// oDataset is mappoint Dataset holding the Counsellors.				                                          oRs=oDataSet.QueryCircle(oLoc, radius);
							if(oRs!=null)
							{
								oRs.MoveFirst();
								while(!oRs.EOF )
								{
									oPin=oRs.Pushpin;
									if(oPin !=null)
										counselCount=counselCount+1;
									oRs.MoveNext(); 
								}
							}
							//break;
						}
					}
					return counselCount;
I am using the above code to get the Pushpins from.

When i try to use my MapPoint application, chose the New York city and if I use the MapPoint Application on my system it gives me nearly 22 counsellors(Puspin) in 50 miles of radius,

But when I execute the above program, it gives me just 5 Counsellors(Puspin).

I am not able to understand where am going wrong.
Reply With Quote