-
Notifications
You must be signed in to change notification settings - Fork 75
Online geocoding
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)
Some third party free geocoding providers:
- CloudMade Geocoding and Geosearch API documentation
- MapQuest Open API documentation. They have also commercial API
- Bing maps Geocode API link
- See also 7 Free Geocoding APIs: Google, Bing, Yahoo and MapQuest compared
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.