Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

128
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda