Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

一个关于数据格式的疑问。 #5

Closed
ghost opened this issue Jun 3, 2019 · 3 comments
Closed

一个关于数据格式的疑问。 #5

ghost opened this issue Jun 3, 2019 · 3 comments

Comments

@ghost
Copy link

ghost commented Jun 3, 2019

我很认真的看了你写代码,在你处理每一条公交线路时,只有起点经纬度是原始的经纬度坐标,后面的点位数据,你都是拿下一个点位的经纬度减去上一个点位的经纬度的值。在前端数据渲染中,你又反向操作将数据还原成所有点位都是经纬度的数据。为什么一开始你在保存数据的时候不把所有的点位都以经纬度的格式存储下来?

@antct
Copy link
Owner

antct commented Jun 3, 2019

您好,因为主要的时间在网络加载数据上,这样可以减少一些文件大小~

@ghost
Copy link
Author

ghost commented Jun 4, 2019

了解了,其实这样压缩不了多少,可以考虑使用一些压缩算法去处理原始数据

@antct
Copy link
Owner

antct commented Jun 4, 2019

嗯,感谢,这是写代码时一个很简单的想法,也没细想。现在数据大小还是一个可以优化的方向~

@antct antct closed this as completed Jun 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant