explaingit

andrewhartar/arkit-corelocation

5,523SwiftAudience · developerComplexity · 3/5Setup · moderate

TLDR

An iOS Swift library that pins digital objects to real-world GPS coordinates in augmented reality, place floating labels above buildings, navigation arrows, or markers at exact lat/long positions.

Mindmap

mindmap
  root((repo))
    What it does
      GPS-aware AR
      Accurate placement
    Tech stack
      Swift
      ARKit
      CoreLocation
    Use cases
      Building labels
      AR navigation
      Location markers
    Setup
      CocoaPods
      Swift Package Manager
      iOS 11 or later
Click or tap to explore — scroll the page freely

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

Things people build with this

USE CASE 1

Build an AR app that shows floating labels above real buildings when you point your phone at them.

USE CASE 2

Create a walking navigation app with AR arrows pointing toward a destination using GPS coordinates.

USE CASE 3

Place markers at specific latitude and longitude positions that appear correctly through the phone camera.

Tech stack

SwiftARKitCoreLocationCocoaPods

Getting it running

Difficulty · moderate Time to first run · 30min

Requires an iPhone 6S or later running iOS 11+ since ARKit requires a physical device with camera and motion sensors.

In plain English

ARKit-CoreLocation is a Swift library for iOS that combines two Apple technologies to place digital objects in the real world with better accuracy than GPS alone. ARKit uses your iPhone or iPad camera and motion sensors to build a precise map of your immediate surroundings as you move. CoreLocation uses WiFi and GPS signals to tell you where you are on Earth, but with relatively low accuracy. By combining them, this library can anchor digital markers to specific real-world coordinates and display them in the correct position as you look through your camera. The practical result is augmented reality that is aware of actual geographic locations. A developer could use this library to build an app that shows floating labels above buildings, arrows pointing toward a destination while navigating on foot, or markers placed at specific latitude and longitude coordinates that appear correctly positioned when you hold up your phone. The library adds two main capabilities. First, it lets you place objects in an AR scene using real-world GPS coordinates rather than just positions relative to where you were standing when the app launched. Second, it improves location accuracy beyond what CoreLocation alone provides by combining GPS readings with knowledge of how you have moved through the AR world. Installation is available through CocoaPods or Swift Package Manager, which are the standard ways to add third-party libraries to iOS projects. The library requires iOS 11 or later and runs on iPhones from the 6S upward and most iPad models from 2017 onward. The README includes a quick-start code example showing how to pin an image above Canary Wharf in London using a latitude and longitude coordinate, which gives a concrete sense of how direct the API is to use.

Copy-paste prompts

Prompt 1
Show me how to install ARKit-CoreLocation with CocoaPods in an iOS Swift project targeting iOS 11 or later.
Prompt 2
Give me the Swift code to pin an image marker above a specific building using a latitude and longitude coordinate in an ARKit-CoreLocation scene.
Prompt 3
How do I combine GPS location data with ARKit tracking in this library to show AR arrows pointing toward a destination?
Prompt 4
Walk me through creating a simple iOS app with ARKit-CoreLocation that places a label at a specific GPS coordinate when I run the app.
Open on GitHub → Explain another repo

← andrewhartar on gitmyhub — every repo by this author, as a profile.

Verify against the repo before relying on details.