This repository was archived by the owner on Apr 1, 2025. It is now read-only.
I modified map.html able to make a prototype map that finds the closest school based on distance#38
Open
deewuok wants to merge 5 commits intocodeforokc:masterfrom
Open
I modified map.html able to make a prototype map that finds the closest school based on distance#38deewuok wants to merge 5 commits intocodeforokc:masterfrom
deewuok wants to merge 5 commits intocodeforokc:masterfrom
Conversation
I tested seems to work and prints out the closest school based on distance to the bbox searching through all schools in geojson file (turned off districts for the moment), compare with map.html
|
Have you looked into Turf? That is probably the easiest way to find the closest school? http://turfjs.org/static/docs/module-turf_nearest.html |
Author
|
Hey, great... can try that next. On Thu, Jan 29, 2015 at 9:33 PM, Devin Clark notifications@github.com
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I modified map.html to now be able to make a prototype map (in javascript) that finds the closest school based on distance its called mapsFindClosestSchool.html (I removed the districts portion for moment but that can be added in later). You can see results on https://docs.google.com/document/d/14Uuel-v0EiUFEDfo9Y_ULLMwOhSc-rOg4Kofflrtpyw