The Map Suite Geocoder “How Do I?” solution offers a series of useful how-to examples for using the Map Suite Geocoder component. The bundled solution comes with a small set of sample data from Chicago, IL and demonstrates geocoding, reverse geocoding, batch geocoding, use of fuzzy matching logic, getting the closest street number to a point, an…
Switch branches/tags
Nothing to show
Clone or download
Casper-ThinkGeo Update README.md
Add Key APIS and "About the Code"
Latest commit a074619 Jul 11, 2017
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Geocoding upload data. Mar 13, 2017
.gitignore Upload code. Dec 28, 2016
Geocoding.sln Upload code. Dec 28, 2016
README.md Update README.md Jul 11, 2017
ScreenShot.png Update screenshot. Mar 17, 2017

README.md

Geocoding Sample for WinForms

Description

Sample Data Download

The Map Suite Geocoder “How Do I?” solution offers a series of useful how-to examples for using the Map Suite Geocoder component. The bundled solution comes with a small set of sample data from Chicago, IL and demonstrates geocoding, reverse geocoding, batch geocoding, use of fuzzy matching logic, getting the closest street number to a point, and much more. Full source code is included in both C# and VB.NET languages; simply select your preferred language to download the associated solution.

Please refer to Wiki for the details.

Screenshot

Requirements

This sample makes use of the following NuGet Packages

MapSuite 10.0.0

About the Code

UsaGeocoder usaGeoCoder = new UsaGeocoder(dataPath);

LayerOverlay markerOverlay = winformsMap1.Overlays["MarkerOverlay"] as LayerOverlay;
MarkerLayer markerLayer = markerOverlay.Layers["MarkerLayer"] as MarkerLayer;
if (matchItem.NameValuePairs.Count > 0)
{
    // Get the centroid point from the WKT string in the MatchPair
    if (!string.IsNullOrEmpty(matchItem.NameValuePairs["CentroidPoint"]))
    {
        markerLayer.MarkerLocation = new PointShape(matchItem.NameValuePairs["CentroidPoint"]);
    }

    // Set the extent that is from the WKT string in the MatchPair and refresh the map
    if (!string.IsNullOrEmpty(matchItem.NameValuePairs["BoundingBox"]))
    {
        winformsMap1.CurrentExtent = new RectangleShape(matchItem.NameValuePairs["BoundingBox"]);
    }
    winformsMap1.Refresh();
}

Getting Help

Map Suite Desktop for Winforms Wiki Resources

Map Suite Desktop for Winforms Product Description

ThinkGeo Community Site

ThinkGeo Web Site

Key APIs

This example makes use of the following APIs:

About Map Suite

Map Suite is a set of powerful development components and services for the .Net Framework.

About ThinkGeo

ThinkGeo is a GIS (Geographic Information Systems) company founded in 2004 and located in Frisco, TX. Our clients are in more than 40 industries including agriculture, energy, transportation, government, engineering, software development, and defense.