Git Product home page Git Product logo

Comments (7)

itali43 avatar itali43 commented on September 17, 2024 2

It worked!!! Definitely b/c of not being outside. Additionally it's popping me down to the lower street on the hill that I'm on so that the graphics are tougher to see!

Was SO puzzled, thank you so much for the help troubleshooting!

from arkitnavigationdemo.

chriswebb09 avatar chriswebb09 commented on September 17, 2024 2

Awesome! I'm so glad to hear it. No worries, I'm happy I could help!

from arkitnavigationdemo.

chriswebb09 avatar chriswebb09 commented on September 17, 2024 1

Hi! Thanks so much, I appreciate the feedback! I've been meaning to write up a decent readme. So it does work out of the box assuming you've entered the right coordinates and whatnot. After you hit go, you have to tap the screen. I had to set the nodes to static, otherwise the GPS signal tends to make them jump around. So it'll refine the position for 8 cycles I think, then set them to static. So, if the permissions are right for location tracking, hit go, and then tap the screen when the next screen appears.

edit: Also it might need a few seconds to render.

from arkitnavigationdemo.

itali43 avatar itali43 commented on September 17, 2024

Ok, used an earlier version and got to the right first screen ( with the go button) but now ending up in the Start.storyboard first. Also haven't found the place to set destination location in this iteration. Went back to previous and have it in ViewController.setupNavigation() but I'm fairly sure I put it there

only two things I'm thinking may have been the problem yesterday is that I may not of waited the few seconds, and I'm using it indoors which tends to make location slower (I think)

from arkitnavigationdemo.

chriswebb09 avatar chriswebb09 commented on September 17, 2024

Yeah, GPS indoor is a lot less reliable. I would try it outside, but it should render regardless. It's not instantaneous, so it might just be expecting it to render too quickly.
In the older version there should be this at the bottom of the viewDidLoad():

` locationService.startUpdatingLocation()
destinationLocation = CLLocationCoordinate2D(latitude: 40.736248, longitude: -73.979397)

    if destinationLocation != nil {
        navigationService.getDirections(destinationLocation: destinationLocation, request: MKDirectionsRequest()) { steps in
            for step in steps {
                self.annons.append(POIAnnotation(point: PointOfInterest(name: "N " + String(describing: step.instructions), coordinate: step.getLocation().coordinate)))
            }
            self.steps.append(contentsOf: steps)
        }
    }`

As long as the second screen has loaded it should work. One solution is to go outside and choose a destination that is directly in front of you, like 2 or three blocks away.

from arkitnavigationdemo.

itali43 avatar itali43 commented on September 17, 2024

Ok thanks, I'll try that now, I have a sneaking feeling it's due to being inside!

from arkitnavigationdemo.

chriswebb09 avatar chriswebb09 commented on September 17, 2024

No worries! I would try giving it a few extra seconds to render, and b, have a good idea of where the bubbles are rendering. You'll look a bit weird out on the street doing this, but try looking around to make sure the bubbles are appearing.

from arkitnavigationdemo.

Related Issues (8)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.