Naughter Software Logo

CNominatim v1.01 A set of MFC classes to handle Nominatim queries

Nominatim is the search tool used by OpenStreetMap. For further information on Nominatim, please see http://wiki.openstreetmap.org/wiki/Nominatim. Nominatim is a web service provided by OpenStreetMap to convert addresses to locations on a map and the reverse also known as Geocoding which converts a lat / long point or specific OSM element to an address.

 

The classes provided are: CNominatimSearchQuery, CNominatimSearchPlace, CNominatimReverseGeocodingQuery, CNominatimReverseGeocodingQueryResult and CNominatim. The two main methods provided are:

HRESULT Search(const CNominatimSearchQuery& query, CArray<CNominatimSearchPlace, CNominatimSearchPlace& >& result, NominatimServer server = nominatim_openstreetmap_org)

The search method performs the address lookup query using the parameters specified in "query" and returns an array of results in "result" using the specified Nominatim server "server". The method returns a standard HRESULT code to indicate success or failure.

 

HRESULT AddressLookup(const CNominatimReverseGeocodingQuery& query, CNominatimReverseGeocodingQueryResult& result, NominatimServer server = nominatim_openstreetmap_org)

The AddressLookup method performs the reverse geocoding query using the parameters specified in "query" and returns the result in "result" using the specified Nominatim server "server". The method returns a standard HRESULT code to indicate success or failure.

 

 

Features

 

The enclosed zip file contains the CNominatim source code and a simple VC 2008 console application which demonstrates the classes using the sample as mentioned on the Nominatim wiki page.

 

Copyright

 

Updates

V1.0 (24 October 2010)

V1.01 (7 August 2011)