0 Favourites

Better Geolocation Data

  • I'm interested in building a location-based game using Construct's new Geolocation feature. I've built a basic setup to display the GPS data and test the accuracy of the function with my device, an iPhone 5 running iOS 10.6.

    I'm getting results, but having trouble getting anywhere within 150 feet of my actual location with either the 'watch' or 'request' functions on normal and high. Here's what the data looks like when it's running normally and I'm standing directly on a location I've preselected and loaded into the application:

    <img src="http://noo.neknows.com/1.jpg" border="0">

    The 'DistanceCumulativeinFeet' value is able to tell me approximately how close I am to the target location by converting the combined Latitude and Longitude values into feet. It typically bounces between 200-800 randomly at all times.

    Although, when I return to my home screen and open the Google Maps app, and then return to the webpage hosting my application, I see an immediate improvement with almost spot-on results:

    <img src="http://noo.neknows.com/2.jpg" border="0">

    I'm able to reproduce this result consistently with my device and across all the available location requesting methods within the Geolocation function. I'm uncertain why Google Maps is able to call a more accurate position than my own application.

    What could I be doing wrong? Or is this a limitation of the function itself?

    Here's a link to my project file.

    Here's the application online.

  • Construct 3

    Buy Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Buy Now Construct 3 users don't see these ads
Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)