Start a new topic

Marker does not set on perfect given location

I am trying to set Marker on ("300 alexander park, princeton NJ 08540 USA") (40.319421,-74.631490) Location

My current location is ("
Payal, Near National Handloom, Chimanlal Girdharlal Rd, Ellisbridge, Ahmedabad, Gujarat 380009, India") (23.027390,72.558721).

I am using 
wikitude.sdksample JAVASCRIPT API

problem is hare the marker is not show as given USA location  
output gives me at 1 meter behind me. 

i have attech code for add Marker on javascript


for (var currentPlaceNr = 0; currentPlaceNr < 2; currentPlaceNr++) {
            if(currentPlaceNr ==0){

                var singlePoi = {
                    "id": 1,
                    "latitude": parseFloat(40.319421),
                    "longitude": parseFloat(-74.631490),
                    "altitude": parseFloat(50),//50
                    "title": "1Alexander",
                    "description": "alexander park, princeton NJ 08540 USA"
                var singlePoi = {
                    "id": 2,
                   "latitude": parseFloat(23.027390),
                  "longitude": parseFloat(72.558721),
                  "altitude": parseFloat(50),//50
                  "title": "",
                  "description": "National Handloom"
			World.markerList.push(new Marker(singlePoi));


(2.72 MB)

Hello Umesh,

Note that the "POI accuracy" also highly depends on your location accuracy. You may implement AR.context.onLocationChanged in your JS experience and check accuracy value (in AR.CONST).
Sidemark: Usage of PlayServices will improve location accuracy on Android a lot.

Also, please note that when you are testing GeoLocation features, you need to keep in mind that the results could be greatly influenced by these two factors:
  • Testing inside. This could deteriorate the performance and therefore, it is always advisable to test outside.
  • GPS provider. You need to make sure that the GPS provider you are using is accurate enough and it does not influence the performance.




Hello Eva

Thanks for reply

I have download wikitude-sdk-sample from github(wikitude
Setup on android studio and add 

also add static Lat-Long in 10_BrowsingPois_5_NativeDetailScreen --> js -->  nativedetailscreen.js

and run project i have accrued problem which is mentioned in above.. 

Hello Umesh,

when using Locations that are very far away from the device location, like it is in your case, the Wikitude SDK is unable to project those POIs properly. 

When you try to create a GeoLocation with a location too far away the onError callback of the GeoLocation is triggered and the location is set relative to the device to -1,-1 which is what you are describing.

Best Regards,


Login or Signup to post a comment