Address Search
- UIKit
This example demonstrates how to use GEMKit in a UIKit application to resolve a full street address step-by-step, from country detection through state, city, street, and house number, using the hierarchical addressSearch API of SearchContext.
Check the full implementation on GitHub.


UI and Map Integration
The view controller embeds a MapViewController and a SearchContext. A progress panel tracks each search stage with spinners and checkmarks as the search progresses:
Step 1: Detecting the Country from Coordinates
The search starts by resolving a coordinate to a country using addressSearchGetCountry(withCoordinates:). If the country has a state level, the state search is started next; otherwise the search jumps directly to city:
Step 2: Searching State and City
Each level is resolved by passing the result of the previous level as the parent landmark to addressSearch(withLandmark:level:query:). The state search uses .state level, then hands off to the city search at .city level:
Step 3: Searching Street and House Number
The chain continues down to .street and .houseNumber levels. Once the house number is resolved, the result is highlighted on the map and the camera animates to its coordinates: