Getting Precise Location in Virtual Earth
You can use the Virtual Earth to insane accurate location of a particular place. The Geocoding engine of the Virtual Earth utilizes a very simple and a common interruption scheme. For example, if the Geocoding engine of the Virtual Earth knows the fact that the 1300 block of the main street stars at a position say (X1, Y1) and it ends at a position say (X2, Y2), then in such case, the main street might be 1/4th of the way between those two mentioned points. This is a very useful technique that frequently returns the results that are not precise, specifically in those areas where the houses are not spaced in an even way.
The developers who wished to have more accurate Geocoding has another option to use. He can use the MWS that is the MapPoint Web Service to acquire the exact location of the street address as it has been described in the Precise Geocoding with the MapPoint Web Service. The new release of the Virtual Earth map control has many upgrades that include more improved Geocoding and address parsing with a unified Geocoding layer. This Geocoding layer enables a number of Geocoding engines and address parsers to be advantage, so as to give the most precise information available by a call to the VEMap.Find method.
The map is displayed by the Geocoding functionality. The Geocoding functionality is exposed by the Find method of the VEMap class. Therefore, you have to first begin to create a map. Then you need to find the address. For finding the address, firstly you have to define the parameters that are required for the VEMap.Find method. This is somewhat a complicated function in the Virtual Earth API.
When the Find method is complete; the next step is handling the results. The results are not reported by a return value. Rather than that, it involves the cal back functioning specified by you. Similarly, like the Find method, these parameters include some particular semantics when it comes to Geocoding. This function has the following signatures: shape layer, find results, more results, places, and error messages. The places and error message parameters are ignored respectively.
Then comes, testing the code. This can be dome by performing a very simple test. You have to add a call to the Start Geocoding function in the Load Map function. The Load Map function is called upon immediately as the body of the HTML page is loaded. And then, finally you get to see the resulting map. See carefully the map, how the address that is shown in the screen shot contains some more information than you have actually provided in the code sample.
This happens, as the Geocoding engine functions to rationalize and complete the address as a part of the main process. And this is returned back to you as a part of the results. It will be seen shortly that the engine may return a number of possible results. In that case, it is better to know about the rationalized addresses for those different results may be.
Technorati Tags: Microsoft, Virtual earth, using virtual earth, features of virtual earth,
Tags: Microsoft Virtual Earth
























