Skip to content
nutiteq edited this page Apr 13, 2013 · 3 revisions

Geocoding, routing, POI and other added services are not really core of Nutiteq 3D SDK, as there are many free online services for it. Most of them are REST-based and very easy to be used: just make HTTP request and parse locations from the JSON response.

You may even use Android built-in geocoding functions which are served by Google, but remember that these do not work on devices which does not have Google Services (including Kindle, Nook etc)

Providers

Some third party free geocoding providers:

Address search sample app

AdvancedMap has AddressSearchActivity as example for basic address search with MapQuest Open API Geocoding Service. The sample has following components

The sample includes:

  • MapQuestGeocoder service which does HTTP request to MapQuest API and parses answer JSON. Calling it:
         MapQuestGeocoder geocoder = new MapQuestGeocoder();
         geocoder.geocode("Lancaster,PA", null, this);
  • Android SearchManager API implementation, so you can fire search with Search key (some devices had this), and you can publish search to other apps
  • SearchRecentSuggestionsProvider to remember last searches

Note that MapQuest service provides several additional data fields, which you may find useful. The sample app shows just basic set of them in the listing. So you probably want to modify it.

Clone this wiki locally