VijayKumar
(Vijay Kumar)
September 24, 2019, 6:26pm
#1
Hi,
would like to know, any cool project built on tomtom api, in general,
or any app working in indian traffic conditions ( just for an inspiration, to get on with the stuff)
thanks in advance,
1 Like
GeoJason
(Louis Debatte)
September 25, 2019, 9:44am
#2
Here are some apps I came across that seem to be using TomTom APIs:
Curious to find more!
2 Likes
szczepam
(Mateusz Szczepanczyk)
September 25, 2019, 9:45am
#3
Hi!
You might want to see our TomTom Maps API tutorial applications which are available on GitHub
The Search along a route application helps with finding various places and shows how to use a routing module to re-route through a particular place. You can find a full source code of this application on our GitHub account for both Android and iOS platforms.
Another application called
Time to leave implements a use case in which you want to be notified about the time when you need to leave in order to get to the specified destination taking current traffic conditions into account. Full source code of this application is available on our GitHub account for both
Android and
iOS platforms.
2 Likes
Hi i’m new to TomTom, is there a basic Android api tutorial on poi search available ?
JoseJose
(Jose R)
October 30, 2019, 2:31pm
#5
2 Likes
szczepam
(Mateusz Szczepanczyk)
October 30, 2019, 2:34pm
#6
Hi.
You can also find a basic usage of search API inside our tutorial apps Search Along A Route or Time To Leave :
private boolean isWayPointPositionSet() {
return wayPointPosition != null;
}
private void searchAlongTheRoute(Route route, final String textToSearch) {
final Integer MAX_DETOUR_TIME = 1000;
final Integer QUERY_LIMIT = 10;
disableSearchButtons();
showDialogInProgress();
searchApi.alongRouteSearch(new AlongRouteSearchQueryBuilder(textToSearch, route.getCoordinates(), MAX_DETOUR_TIME).withLimit(QUERY_LIMIT))
.subscribeOn(Schedulers.io())
.observeOn(AndroidSchedulers.mainThread())
.subscribe(new DisposableSingleObserver<AlongRouteSearchResponse>() {
@Override
public void onSuccess(AlongRouteSearchResponse response) {
displaySearchResults(response.getResults());
dismissDialogInProgress();
enableSearchButtons();
}
latLngDeparture = searchResultsMap.get(item);
} else if (autoCompleteTextView == atvDestinationLocation) {
latLngDestination = searchResultsMap.get(item);
}
hideKeyboard(view);
}
});
}
private void searchAddress(final String searchWord, final AutoCompleteTextView autoCompleteTextView) {
searchApi.search(new FuzzySearchQueryBuilder(searchWord)
.withLanguage(Locale.getDefault().toLanguageTag())
.withTypeAhead(true)
.withMinFuzzyLevel(SEARCH_FUZZY_LVL_MIN).build())
.subscribeOn(Schedulers.io())
.observeOn(AndroidSchedulers.mainThread())
.subscribe(new DisposableSingleObserver<FuzzySearchResponse>() {
@Override
public void onSuccess(FuzzySearchResponse fuzzySearchResponse) {
if (!fuzzySearchResponse.getResults().isEmpty()) {
searchAutocompleteList.clear();
2 Likes
Thank you I will check those out
Hi, I started a new project tutorial and after but it’s not possible to sync the project
ERROR: Failed to resolve: com.tomtom.online:sdk-maps:2.243
What would be the reason for that.
Thank you
Sorry it works, I had put the repository link in the wrong section