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

Speed up loading of the state GEOJSON #2

Open
fccoelho opened this issue Oct 12, 2016 · 4 comments
Open

Speed up loading of the state GEOJSON #2

fccoelho opened this issue Oct 12, 2016 · 4 comments

Comments

@fccoelho
Copy link
Contributor

Is there any way to speed up the loading of the state maps? It is excruciatingly slow!

@fccoelho
Copy link
Contributor Author

Perhaps only loading the polygons of municipalities with stations, or better yet, loading only the station dots and putting a google layer below it so that people know where it is.

@israelst
Copy link
Collaborator

israelst commented Oct 13, 2016

I've already setted all cache configs, so I don't think that speed up the loading of municipalities will be possible.

But there at least two solutions to this problem. We just need these polygons because we get the nearest station of the centroid of the municipality, and the centroid calculated at the frontend, so we can:

  • Stop using centroid and use the coord of the administration of the county
  • Pre calculate and cache all distances at backend.

Any of these two options make the download of the polygons obsolete.

@israelst
Copy link
Collaborator

Btw, these two features look relevant to me.

@fccoelho
Copy link
Contributor Author

I prefer the solution of precalculating the centroids and distances.

On Thu, Oct 13, 2016 at 1:56 PM, Israel Teixeira [email protected]
wrote:

Btw, these two features look relevant to me.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#2 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAIjW6nS5qSJ7xo0xZrf641sUSDXoGVKks5qzmLEgaJpZM4KUkl-
.

Flávio Codeço Coelho

+55(21) 3799-5551
Professor
Escola de Matemática Aplicada
Fundação Getulio Vargas
Praia de Botafogo, 190 sala 312
Rio de Janeiro - RJ
22250-900
Brasil

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

2 participants