Opened 13 years ago

Closed 6 years ago

#220 closed enhancement (wontfix)

accept GPX files without timestamps

Reported by: Tom Owned by: Dan Karran
Priority: major Milestone:
Component: api Version:
Keywords: gpx gps timestamps Cc:

Description

So that annoying l33t GPS hackers don't go to the trouble of 'faking' their timestamps just so they can play OpenStreetMap, sigh.

I would also suggest banning people who are submitting fake data, but that's an argument for another day.

Attachments (1)

timestamp.diff (681 bytes) - added by Dan Karran 13 years ago.
Uses date = Time.parse(0) unless gotdate

Download all attachments as: .zip

Change History (6)

Changed 13 years ago by Dan Karran

Attachment: timestamp.diff added

Uses date = Time.parse(0) unless gotdate

comment:1 Changed 13 years ago by Dan Karran

Owner: changed from steve@… to Dan Karran
Status: newassigned

The attached patch should set the year to the UNIX epoch (though I don't have a setup to test it on at the moment). I wasn't sure if the date was required by other pieces of code so I used the epoch instead of simply not specifying a date and time. The latter would be prefered, I'd think, if there are no other dependencies.

comment:2 Changed 12 years ago by writetodan@…

Component: apirails_port
Milestone: OSM 0.5

comment:3 Changed 12 years ago by richard@…

Suggest that, instead of setting the time to the epoch, it should set:

  • point 1 = epoch
  • point 2 = epoch+1
  • point 3 = epoch+2

so that the order of the journey is preserved (and lines can be drawn between points).

comment:4 Changed 12 years ago by Tom Hughes

Component: rails_portapi
Priority: criticalmajor

comment:5 Changed 6 years ago by iandees

Resolution: wontfix
Status: assignedclosed

Cleaning old tickets.

Note: See TracTickets for help on using tickets.