BrainDump
  Home arrow BrainDump arrow Page 4 - Working with Data with the MapPoint Web Se...
ASP Free Forums 
.NET  
ASP  
ASP Code  
ASP.NET  
ASP.NET Code  
BrainDump  
C#  
Code Examples  
Database  
Database Code  
IIS  
Microsoft Access  
MS SQL Server  
Silverlight  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
ASP Web Hosting  
ASP.NET Web Hosting 
Windows Web Hosting
 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
BRAINDUMP

Working with Data with the MapPoint Web Service Find APIs
By: O'Reilly Media
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 1
    2008-02-14

    Table of Contents:
  • Working with Data with the MapPoint Web Service Find APIs
  • Querying for Geographic Extent for a Data Source
  • Working with Find Methods
  • Finding more default matches

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Working with Data with the MapPoint Web Service Find APIs - Finding more default matches


    (Page 4 of 4 )

    These results include places from both the United States and Australia. By default, the find threshold score is set to 0.85, which means that any find match with a confidence score of less than 0.85 is not returned. So, to get more results for this query, you can simply decrease the threshold score using the FindOptions.ThresholdScore field:

      //Create find options
      findspec.Options = new FindOptions();

      //Set threshold score to zero
      findspec.Options.ThresholdScore = 0;

    With the threshold score set to zero, the same query for Redmond yields 32 results of which only the following first 25 are returned:

      Redmond, Washington, United States
      Redmond, Oregon, United States
      Redmond, Western Australia, Australia
      Redmond, Larimer, Colorado, United States
      Redmond, Butler, Pennsylvania, United States
      Redmond, Sevier, Utah, United States
      Redmond, Mason, West Virginia, United States
      Redmond Fall City Road Park (park), Washington, United States
      Redmond Park (park), Cedar Rapids, Iowa, United States
      Redmond Park (city park), Yonkers, New York, United States
      Redmond Branch Library (library), Redmond, Oregon, United States
      Redmond Chamber of Commerce (tourist information office), Redmond, Oregon, United States
      Redmond Chamber of Commerce (tourist information office), Redmond, Washington, United States
      Redmond City Hall (city hall), Redmond, Oregon, United States
      Redmond City Hall (city hall), Redmond, Washington, United States
      Redmond Community Cemetery (cemetery), Redmond, Washington, United States
      Redmond Corner, Oneida, New York, United States
      Redmond Cut (pass), California, United States
      Redmond District Court (courthouse), Redmond, Washington, United States
      Redmond Elementary School (school), Redmond, Washington, United States
      Redmond High School (school), Redmond, Washington, United States
      Redmond Junior High School (school), Redmond, Washington, United States
      Redmond Memorial Cemetery (cemetery), Redmond, Oregon, United States
      Redmond Municipal Court (courthouse), Redmond, Oregon, United States
      Redmond Municipal Court (courthouse), Redmond, Washington, United States

    Returning more find results

    By default, MapPoint Web Service always returns only 25 results at once, but you can get a maximum of 500 results using the FindOptions.Range field:

      //Create find options
      findspec.Options = new FindOptions();
      //Set result count
      findspec.Options.Range = new FindRange();
      //Set to the maximum count
      findspec.Options.Range.Count = 500;

    After adding this code to the Find code, you get all 32 results returned by theFindmethod.

    Please check back next week for the continuation of this article.


    DISCLAIMER: The content provided in this article is not warranted or guaranteed by Developer Shed, Inc. The content provided is intended for entertainment and/or educational purposes in order to introduce to the reader key ideas, concepts, and/or product reviews. As such it is incumbent upon the reader to employ real-world tactics for security and implementation of best practices. We are not liable for any negative consequences that may result from implementing any information covered in our articles or tutorials. If this is a hardware review, it is not recommended to open and/or modify your hardware.

       · This article is an excerpt from the book "Programming MapPoint in .NET," published...
     

    Buy this book now. This article is excerpted from chapter six of the book Programming MapPoint in .NET, written by Chandu Thota (O'Reilly; ISBN: 0596009062). Check it out today at your favorite bookstore. Buy this book now.

    BRAINDUMP ARTICLES

    - Introduction to Office Live Workspace
    - Using MS Excel for One-way Analysis of Varia...
    - Comparing Data Sets Using Statistical Analys...
    - Import Blogger Posts into WordPress Using Wi...
    - Download WordPress from an FTP Server and Ru...
    - Install and Run WordPress in XAMPP Local Host
    - What Windows 7 Brings to the Table
    - Virtualization and Sandbox Detection
    - Advanced Firebug Techniques in Windows XP Ho...
    - Editing CSS with Firebug in Windows XP Home
    - Using Firebug in Windows XP Home
    - Migrating to Exchange Server 2007
    - Using System Restore on a Non-Bootable PC
    - Finding Logged on Users and More Scripting S...
    - Developing Macro Commands in MS Excel





    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 2 Hosted by Hostway
    Stay green...Green IT