Skip to content

Search Around

Search for nearby places, or reverse geocode, using a pair of coordinates.

Search Around

Use case

Search for points of interest relevant to the given pair of coordinates.

How to use the sample

First, get an API key token, see the Getting Started guide.

Download the Maps & Navigation SDK for C++ archive file for Linux or Windows

When you open the sample, you’ll be viewing the scene from above. A fly will be performed to the first point of interest found.

How it works

  1. Create a MapViewListener, OpenGLContext and MapView.

  2. Create a LandmarkList.

  3. Call the SearchService using the list from 2.), a progress listener and a pair of coordinates relevant to your search.

  4. Once the search operation completes, instruct the MapView to center on the coordinates of the first result.

  5. Instruct the MapView to activate the highlight in order for the result to be seen better.

C++ Examples

Maps SDK for C++ Examples can be downloaded or cloned with Git