Questions tagged [tomtom]
TomTom's public API's for online maps, traffic, routing and search, as well as the per-operating system SDKs. Usage is free up to a daily limit.
92
questions
0
votes
0
answers
21
views
TomTomMap is not displaying map (Blank)
With reference to the TomTom Map Official Documentation
Build Gradle:
implementation 'com.tomtom.sdk.maps:map-display:0.33.1'
Main Activity Looks like as follows:
private lateinit var tomTomMap: ...
-2
votes
1
answer
60
views
How to initialize a MapView() with TomTom SDK in Xcode?
I have installed and imported TomTomSDKMapDisplay into my Xcode project and am trying to display a map on a view. Following the TomTom Developer instructions, I am trying to assign my api key. Here is ...
0
votes
0
answers
36
views
Huge problem with SearchBox from TomTom (NextJS and Raect)
I've been working on this for 3 days. I tried to use the NPM package from TomTom at the start of NextJS and now trying React.
I added a code as the documentation says:
const ttSearchBox = new ...
0
votes
1
answer
31
views
Is it possible to use TomTom WebSdk MapTiles in raster mode?
I am using TomTom webSDK map tiles which by default work in vector mode:
https://developer.tomtom.com/maps-sdk-web-js/overview/product-information/introduction
Unfortunatelly it works very slow due to ...
0
votes
1
answer
131
views
How can I retrieve historical incident data from Tomtom's API using Python requests?
I am trying to retrieve some historical data regarding incidents from Tomtom's api using requests module in python.
I tried this code:
#defining the retrieved properties of the incident
query = '{...
0
votes
1
answer
131
views
How to overcome the 'dependencyResolutionManagement() method not found' error when building a React Native native Android module with TomTom Maps?
React-native native android module. Facing several errors with this https://developer.tomtom.com/android/maps/documentation/overview/project-set-up . Trying to build a native android module for React ...
0
votes
1
answer
121
views
Reactjs 18 - Third party DOM libraries integration - ReactDOM.render?
I have been working on a map application using TomTomMap and I need to render a custom Marker component on the Map, where I can attach different Reacts events and update React state variables. In the ...
0
votes
3
answers
390
views
how to get traffic data using api
Hi I am working on a project that needs traffic data
I am trying to use APIs like tomtom or HERE but i can't get it to work
All I want is to collect the traffic count (number of cars in each route) ...
-1
votes
1
answer
182
views
How to convert address(input) to coordinates using Tom Tom in Laravel 9 and save them in db?
We are struggling to try to convert an address to coordinates using TomTom (their documentation sucks fr) in Laravel 9. At this point, we need a proper guide; we don't know how to begin.
Model
use ...
2
votes
0
answers
76
views
TomTom POIs search API is returning random total results (between 90 to 100) for same input
I am trying to use TomTom POIs search API and I am getting a total amount of results that doesn't match the reality... also it looks like for the same input a random total between 90 to 100 is ...
0
votes
0
answers
128
views
Converting TomTom API Tile to Lat/Long using Python
I am using TomTom API to retrieve Traffic Data in PBF format
example /traffic/map/{versionNumber}/tile/flow/{style}/{zoom}/{x}/{y}.{format}
api call tried https://api.tomtom.com/traffic/map/4/tile/...
0
votes
1
answer
224
views
Is there any way i can get the bounds(north-east and south-west) of the map view on bounds/center/view area change?
I'm using TomTom Map SDK in NextJs to create functionality such that when map is loaded based on the map bounds, i query all the nearby restaurants in that area. And on map zoom or drag event i want ...
0
votes
0
answers
50
views
Webfleet .connect API not available for Webfleet LITE subscriptions?
is that true? Webfleet .connect API is not available for Webfleet Lite subscriptions?
BR, Rene
2
votes
1
answer
157
views
TomTom OpenLR Binary Version 3, Differences and mistakes of the OpenLR Whitepaper and the TomTom Demo Tool
I am currently trying to decode OpenLR binary Strings (version 3) as specified in the OpenLR Whitepaper (version 1.5, rev 2) which can be found at the OpenLR Association website.
Unfortunately, while ...
1
vote
1
answer
296
views
Using polyline in Tomtom Map API
I have a problem in my code where I can't create the route for the final markup. Today my code only marks the final address through the Tomtom API, but I am not able to make the trajectory between the ...
0
votes
0
answers
52
views
How to solve Uncaught Error: Invalid hook call?
Hi guys I am trying to build a react search box component but it keeps throwing me this error:
Uncaught Error: Invalid hook call. Hooks can only be called inside of the body of a function component.
...
1
vote
1
answer
353
views
Promises and Axios request still returns 429 despite setTimeout
I've been having a problem with the Reverse Geocode API provided by TomTom where I get 429 responses back, because I am mapping over 72 latitude and longitude objects to the API.
So I decided tried to ...
1
vote
1
answer
122
views
How to solve error on using tomtom mapfit?
According to this guide:https://developer.tomtom.com/blog/build-different/adding-tomtom-maps-django-app-building-front-end-map
I'm trying to use the tomtom for my django project and everything is ...
0
votes
1
answer
87
views
TomTom Map api black dots on the map
I am using the TomTom map API. But when I'm using the map there are so many black dots and boxes(as seen on the image below). When I zoom in the dots and boxes disappear, but then the new dots and ...
3
votes
1
answer
2k
views
Save coordinates to database and then do a range search
I’m using the TomTom API to find the coordinates of some places and store them into a database. What I’m trying to do now is doing a range research on only those locations.
Let’s say I input 10km of ...
0
votes
1
answer
381
views
How can i add marker tomtom in vuejs?
I want to add a marker in tomtom. I would like to define a map in "data" but when I do this it gives me an error:
maps.min.js:1 Uncaught (in promise) TypeError: 'get' on proxy: property '...
0
votes
1
answer
202
views
TomTom's API Matrix Routing with Pyton returns Response [400]
I'm trying to test TomTom's API Matrix Routing v2 -> Synchronous Matrix (documentation here) with Python's requests.
Here is my code, using their example from the documentation:
import requests
...
0
votes
1
answer
481
views
how to use tomtom api with python requests. it returns a text "user inactive"
i am trying to use the requests library with python to fetch data from the traffic api with python.
this is the link for website with api that should include the traffic data:
https://api.tomtom.com/...
1
vote
1
answer
678
views
Creating a heatmap with uneven block sizes / stacked bar chart using Python
I want to create a heatmap in Python that is similar to what is shown on the bottom of this screenshot from TomTom Move: https://d2altcye8lkl9f.cloudfront.net/2021/03/image-1.png (source: https://...
0
votes
0
answers
177
views
TomTom API - Input has value but remains untouched
I'm using the TomTom FuzzySearch/Autocomplete API, to allow users to search for an address on a form and then the address input fields will prepopulate (with the address values), when the user selects ...
1
vote
1
answer
444
views
Start TOMTOM navigation using Javascript and Android Intent
I have a web application that needs to open a destination in the native maps/navigation app on the device. On most Android devices this is google maps, and I can simply open a link that will open ...
2
votes
0
answers
42
views
Getting the value of distance measured and add recommendation
I am currently trying Tomtom routing with summary example(https://developer.tomtom.com/maps-sdk-web-js/functional-examples#examples,code,routing-with-summary.html). I want to get the result/value of ...
0
votes
0
answers
50
views
Href not working when javascript inside div tag included
I included TomTom map to my php page, and included the TomTom code (javascript) into a separate body tag at the very bottom. I'm noticing that when I include the TomTom script within these tags, none ...
0
votes
1
answer
247
views
How to activate autocomplete option of tomtom in my html code?
I have the following simple code for using tomtom which works:
<!DOCTYPE html>
<html class='use-all-space'>
<head>
<meta http-equiv='X-UA-Compatible' content='...
0
votes
1
answer
196
views
How can I transform geocoding with google in geocoding with Tomtom? (Python?
I have this code that basically give me the lat and long when I give it the direction. It is planted to use the API of google but now I need to use the Tomtom API. I don´t know how to do it.
import ...
0
votes
1
answer
2k
views
Access to XMLHttpRequest at <url> has been blocked by CORS policy: Request header field authorization is not allowed by Access-Control-Allow-Headers
Im trying to consume TomTom maps api to get the location .
My function :
getLocationAddress(lat: number, lon: number) {
const url = `${baseUrl}search/${versionNumber}/reverseGeocode/${lat},${lon}...
1
vote
2
answers
141
views
Marker out of canvas TomTom
You can have a look at this IMG to understand quickly the issue:
Example IMG
This appens when you drag with mouse on the map. Thanks
3
votes
1
answer
1k
views
Is there a decoder for Here Api TPEGOpenLRBase64 Code?
For my master thesis I am writing a reference implementation in Java. It uses HERE Api to obtain traffic incident information. The XML received contains a TPEGOpenLRBase64 code.
TomTom provides an ...
0
votes
1
answer
91
views
TomTom Category search API does not return Phone numbers
The Category search API does not return the phone numbers as specified in the documentation.
https://developer.tomtom.com/search-api/search-api-documentation-search/category-search
Screenshot of : ...
0
votes
1
answer
74
views
Where is the geography search type in Tomtom android SDK
I'm trying to do a search with the tomtom sdk in android.
SearchApi searchApi = OnlineSearchApi.create(Activity.this);
searchApi.search(new FuzzySearchQueryBuilder(mSearchBar.getText().toString()...
-2
votes
1
answer
237
views
how to Create an APK that holds a PDF and Displays it on the home page
I'm an N0ob so easy to follow instructions please :)
I am trying to build an app to go onto a TOMTOM display, running Andriod 6.0.1.
I have 3 PDF's I want drivers in my fleet to have access to. So the ...
0
votes
1
answer
226
views
How to remove route in tomtom maps sdk?
Is there a way to remove the route without clearing the markers? Using function clear() is really bad.
tomtomMap.clear();
route = null;
origin = null;
destination = null;
1
vote
1
answer
307
views
Hide and Show Tomtom Map Markers
Adding and showing markers on Tomtom map without using clear() function using this simple logic. Create a boolean variable and change it according to your needs. Buttons will do, just switch the ...
0
votes
1
answer
49
views
API key not appending to ReverseGeocode request
For some reason my API key doesn’t seem to be added to my reverse Geocode request.
The key is correctly in my info.plist , I’ve tried adding every other key to my plist also but this still isn’t ...
2
votes
3
answers
2k
views
How to get all objects of same type inside an array in Javascript?
I am working with the TomTom places api as part of a project. I am new to Javascript and I'm finding it difficult to extract the information I need from the API. I am trying to get all names, phone ...
0
votes
1
answer
189
views
TomtomMap.getUserLocation() returns always null?
I trying to get the devices location, but the TomtomMap.getUsersLocation() is always returning null.
The wired thing is that since i set TomtomMap.setMyLocationEnabled(true) the map marks the user ...
1
vote
1
answer
307
views
How To Migrate from Google Maps to TomTom
I just tried to build a new project about gis applications that can store locations in the mysql database, since the Google map is paid I want to try the free ones, it's just TomTom, I'm just confused ...
0
votes
1
answer
316
views
How to change tomtom map's marker in kotlin
Trying to add a custom icon marker to tomtom maps on android project
here the function am using for this :
private fun addingStation() {
val i = ResourcesCompat.getDrawable(getResources()...
0
votes
1
answer
88
views
Unresolved refernce ( success, error) while trying to use TOMTOM search api in kotlin app
I'm trying to use TOMTOM search API in my kotlin application
Here is my code :
private fun testSearch() {
val observer = object : DisposableSingleObserver<FuzzySearchResponse>() ...
0
votes
2
answers
214
views
enable to use tomtom search api in kotlin
Been searching for a week now, The official documentation are not clear at all.
as mentioned there, the code
val searchServiceConnection = SearchServiceManager.createAndBind(context,
...
-1
votes
1
answer
81
views
can I use restfull framework for Django to use api [closed]
I want to use tomtom web api for routing : https://developer.tomtom.com
every time I search how to use an API with django I get the restfull framework isn't that for building an API? If I can use it ...
1
vote
1
answer
1k
views
TomTom tile layer not included in leaflet map
Currently working on an app (map) where I would like to use the Tom Tom tile layers on top of Leaflet. Due to Leaflet's documentation I would like to stick to Leaflet, rather than Tom Tom. I was ...
1
vote
1
answer
694
views
Tomtom Maps sdk for android failed to load tile
I'm trying to add TomTom maps to my android application that is built with Kotlin, but it gives me the error Tomtom Maps SDK for android failed to load tile and shows an empty map as shown in the ...
1
vote
1
answer
693
views
Android - How to trigger standalone navigation applications with multiple way points via intent?
Today I'm using Android Intent in the following format to trigger navigation from my application on standalone navigation applications:
Action : "android.intent.action.VIEW"
URI : "google.navigation:q=...
1
vote
1
answer
336
views
Create clusters with TomTom web SDK
I'm using TomTom to show a map on a website with this simple code:
let map = tomtom.L.map('map', {
key: 'MY_API_KEY',
source: 'vector',
basePath: 'public/sdk/tomtom',
center: ...