Skip to content

  • About Me
  • Activations
  • Contact me
  • FAQ
  • Home
  • People to thank
  • Privacy Policy
  • Register
  • Support

Nearest Sites

April 27, 2020 by VK5AYL

This was the last screen worked on.  Initially, it had been part of the site search but I moved it out of there as it was getting messy because of the Award and State buttons, plus it is more informational.

The latitude and longitude shown at the bottom of the screen is derived from the internal GPS on the phone.  Swift has special functions I can call to determine the user’s current location.

Allen’s API includes functions that pass back data in JSON format.  I just pass in the latitude, longitude and the radius to the API function and it passes back the data requested.  Then I just break it up into bits and place it into labels on the screen.  

The second screen here shows the Grid Square, nearest park, summit and shire.  Same deal although I call 4 API functions with the latitude and longitude to get the 4 rows.

Post navigation

Previous Post:

Joined Apple Developer Program Mar 2017

Next Post:

Parks & Peaks app version 1 May 2017

User guides

What’s new in v3 New
Cheat Sheet v3 New

Comprehensive User Guide v2.4
Quick User Guide v2

Version 2 Blog

  • ParksnPeaks v2 with Logging is on the App Store
  • Push Notifications
  • In-app Notifications
  • Swiping Spots & Alerts
  • Mapping Sites
  • Finding Sites
  • Exporting Logs
  • The QSO Log
  • Version 2 Design
  • Apple Swift & Xcode for those who care!
  • ParksnPeaks v2

Recent Posts

  • ParksnPeaks v2 with Logging is on the App Store
  • Push Notifications
  • In-app Notifications
  • Swiping Spots & Alerts
  • Mapping Sites

Version 1 Blog

  • Archives
  • Latest Posts
  • Version 1
  • Version 2
© 2024 | WordPress Theme by Superbthemes