jpatokal / openflights

Website for storing flight information, rendering paths on a zoomable world map and calculating statistics, with plenty of free airline, airport and route data.
http://openflights.org
GNU Affero General Public License v3.0
1.39k stars 390 forks source link

Ability to set custom distance #1203

Closed matthew-dyson closed 1 year ago

matthew-dyson commented 1 year ago

It'd be handy to be able to set a custom distance, especially in instances of a flight that takes off and lands at the same destination (for example sightseeing, training, or disrupted operations). This will ensure, even a 3-hour flight to nowhere, will still contribute to the overall distance travelled of a user.

chrisrosset commented 1 year ago

I believe this is already possible. I have one such flight (disrupted operations, had to turn back halfway through).

custom-distance

Changing the distance will only update the total distance after refreshing the page though.

matthew-dyson commented 1 year ago

How'd you get this distance into OpenFlights? I've not got an option online to add a manual distance, but I think I could through a CSV import.

List view:

Screenshot 2023-06-18 at 14 08 48

Detailed edit view:

Screenshot 2023-06-18 at 14 09 47
chrisrosset commented 1 year ago

I did it by editing the input boxes that show up on the lower right hand side of the map (duration and distance) and the clicking Save.

On Sat, Jun 17, 2023, 22:13 matthew-dyson @.***> wrote:

How'd you get this distance into OpenFlights? I've not got an option online to add a manual distance, but I think I could through a CSV import.

List view: [image: Screenshot 2023-06-18 at 14 08 48] https://user-images.githubusercontent.com/102329447/246639799-a5e0604a-9b88-43e8-984a-763967c3fb5f.png

Detailed edit view: [image: Screenshot 2023-06-18 at 14 09 47] https://user-images.githubusercontent.com/102329447/246639820-846473dd-4807-4f7b-bd38-c7c29d16e230.png

— Reply to this email directly, view it on GitHub https://github.com/jpatokal/openflights/issues/1203#issuecomment-1595926974, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAINLPQR6VUULG3FLPVYIFLXLZP5FANCNFSM6AAAAAAYWZU7W4 . You are receiving this because you commented.Message ID: @.***>

matthew-dyson commented 1 year ago

Actual magic. I don't think I would've seen that in a thousand years facepalm.

Closing!