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

113
Vistas
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 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