Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

102
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!