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

Site Finder #47

Merged
merged 6 commits into from
Jul 31, 2023
Merged

Site Finder #47

merged 6 commits into from
Jul 31, 2023

Conversation

jack-davison
Copy link
Collaborator

@jack-davison jack-davison commented Jul 30, 2023

This PR implements #29.

In short, it adds searchNetwork(), a sister function to networkMap(). Instead of visualising whole networks, it allows users to define a target lat/lng and filter sites based on their distance from the target.

It also adds convertPostcode(), which converts a valid UK postcode to a latitude/longitude pair.

palace <- convertPostcode("SW1A1AA")
searchNetwork(lat = palace$lat, lng = palace$lng, source = c("aurn", "aqe", "local"), max_dist = 20, year = 2020)

image

@jack-davison jack-davison added enhancement New features map:networks 📌 Anything to do with network visualisation, e.g., networkMap() labels Jul 30, 2023
@jack-davison jack-davison self-assigned this Jul 30, 2023
@jack-davison jack-davison marked this pull request as ready for review July 31, 2023 06:09
@jack-davison jack-davison merged commit da2b909 into master Jul 31, 2023
3 checks passed
@jack-davison jack-davison deleted the feat/site-finder branch July 31, 2023 06:09
jack-davison added a commit that referenced this pull request Aug 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New features map:networks 📌 Anything to do with network visualisation, e.g., networkMap()
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use networkMap() to find sites near a location (parity with {worldmet})
1 participant