Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

132
Vistas
Matrix API and Google TTS Integration with location tracker in android app

I am developing an app based on JavaScript. There's a certain process I want but am not sure how to move forward with it. The following is the process if anyone could help me with the code for the idea.

So the person clicks a button on the main home page after which another activity is opened. Here, the app quickly takes the location of the person and gives the Matrix Api the coordinates. Along with a coordinate previously chosen in the login screen saved on the firebase database, the coordinates apply to the Matrix API and find the time taken to reach. Over here for an example:-

 $curl "https://api.mapbox.com/directions-matrix/v1/mapbox/driving/c,h?approaches=curb;curb;curb&access_token=YOUR_MAPBOX_ACCESS_TOKEN"

where c is for the current location taken and h for the location from the login screen.

This returns a JSON file for example:-

{
"code": "Ok",
"durations": [
    [ 0,      573],
    [ 573,    0],
],

where I'll take 573 secs and convert it to minutes in the code and then apply it to the following text:- "The car will reach you in 'f' minutes" where 'f' is the time and then this text is spoken through google TTS.

The official documentation of the Matrix API that I was thinking of taking:- https://docs.mapbox.com/api/navigation/matrix/

Can someone tell me how to code this part of my app out... I think this is a bit based on my python development skills as I have used the same logic but I'm not sure how to add that into my app as I'm new to Android Development so if anyone could help it would be great. Pls, Help 🙏

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda