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

103
Visualizações
Importing a lot of JSON coordinates for leaflet routing machine

So I am trying to plot routes on a map using leaflet and their routing library, the data I want to use is like this:

var controlLines = [
{
  "geometry":{
    "type":"Point",
    "coordinates":[[-3.182125,51.489367],[-3.20473,51.50113],...]},
  "type":"Feature",
  "properties":{"User_ID":100329776}
},...
];

I have over 3,000 user id entries and I need to have each one to have its own route using their coordinate data for the waypoints.

My question is what is the best method to import and parse the data for the use of the routing machine, and is it possible to have each user route be its own path?

The result I am trying to get with the parsing should be something looking like this:

'id' = [
L.latLng('lat','lng'),
... ]
// repeated for each user id

Thank you for your time.

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