1

I want to place an object in ARKit using latitude and longitude. Currently I can place the object using SCNVector3 (x, y, z).

How can I place models using latitude and longitude?

Andy Jazz
  • 49,178
  • 17
  • 136
  • 220

1 Answers1

1

You can definitely place models using latitude and longitude with ARGeoAnchor:

ARGeoAnchor(coordinate: CLLocationCoordinate2D, altitude: CLLocationDistance?)

Look at this post telling about ARGeoTrackingConfig's implementation.

Andy Jazz
  • 49,178
  • 17
  • 136
  • 220
  • @SimranRout, pay particular attention, at the moment ARGeoTracking works only in US cities. https://developer.apple.com/documentation/arkit/argeotrackingconfiguration – Andy Jazz Feb 06 '21 at 06:53