One, add geocodeservice Web service references
The Geo-coding Service (Geocodeservice) is a Web service published with WCF technology, The Map Coding service provides the function of matching the map address (both geographical longitude and latitude coordinates) with a valid physical address on the map and reverse matching the physical address path with geographical longitude and latitude coordinates. To use this service, you need to add the Web Service reference for the service (HTTP://DEV.VIRTUALEARTH.NET/WEBSERVICES/V1/GEOCODESERVICE/GEOCODESERVICE.SVC), as shown in the following figure:
As can be seen from the above diagram, this service provides two methods, one is based on the geographical longitude and latitude coordinates corresponding to the name retrieval, and the other method realizes the function of retrieving the place name. The Add Web Service Reference Wizard IDE tool will automatically generate proxy objects for our web service references, and so on, these knowledge point data Web Services or WCF-related, not described in detail here.