Fermé

Convert Javascript GeoLocation to PhoneGap Build API GeoLocation

I am using the following code: to grab my mobile webapp visitors location and post it to my server. I need to convert the code to use the PhoneGap background geoLocation API (found here: [login to view URL] ).

$(document).ready(function(){

onPageLoad();

});

function onPageLoad(){

var data;

if ([login to view URL]) {

var timeoutVal = 10 * 1000 * 1000;

[login to view URL](displayPosition, displayError,{

enableHighAccuracy: true,

timeout: timeoutVal,

maximumAge: 0

});

}

else {

alert("Geolocation is not supported by this browser");

}

function displayPosition(position) {

data="Latitude=" + [login to view URL] + "&Longitude=" + [login to view URL];

$.ajax({

type:"post",

url:"[login to view URL]",

data: data,

dataType: "text",

success: function () {

}

});

}

function displayError(error) {

var errors = {

1: 'Permission denied',

2: 'Position unavailable',

3: 'Request timeout'

};

if(errors[[login to view URL]]=='Permission denied'){

var timeoutVal = 10 * 1000 * 1000;

[login to view URL](

displayPosition,

displayError,

{ enableHighAccuracy: true, timeout: timeoutVal, maximumAge: 0 }

);

function displayPosition(position) {

data="Latitude=" + [login to view URL] + "&Longitude=" + [login to view URL];

}

displayPosition();

}else{

alert("Error: " + errors[[login to view URL]]);

}

}

displayPosition();

displayError();

}

Compétences : Android, Javascript, Mobile App Development, PhoneGap, PHP

en voir plus : using oauth javascript call rest api, build price comparison website using wordpress api, share twitter using javascript phonegap, navigator.geolocation.getcurrentposition not working cordova, cordova geolocation accuracy, cordova geolocation permission, cordova-plugin-geolocation github, ionic get current position, cordova geolocation example, phonegap geolocation example, cordova-plugin-geolocation npm, html, javascript, jquery / prototype, phonegap, api, google maps javascript api geolocation, convert javascript php code, convert javascript html, convert javascript ebay use

Concernant l'employeur :
( 1 commentaire ) United States

Nº du projet : #16717170

8 freelance font une offre moyenne de $55 pour ce travail

sureshdevi

I will convert javascript geolocation to phonegap build api geolocation on your mobile webapp. I will complete this work in a day. Looking for your reply to start this work immediately. I will be available online fr Plus

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(1102 Commentaires)
7.9
saad2038

Hi, I can help you to convert JavaScript GeoLocation to cordova phonegap based GeoLocation. I've good expertise in phonegap and done loss of projects in phonegap. I can easily do the GeoLocation change for you. Please Plus

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 2 jours
(53 Commentaires)
5.8
sudenis

Hi, It is more than you willing to pay but take a look: 1. ...to grab my mobile webapp visitors location You have webapp - that means you can not use PhoneGap API as is.... You need to convert your webapp to Cordov Plus

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 5 jours
(8 Commentaires)
4.1
rahulsahu013

Hello Sir, I am an experienced Ionic developer who has 5 years of industry experience. I provide quality result in less time and low budget with full satisfaction. I build many projects from scratch and I have great Plus

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 5 jours
(12 Commentaires)
3.8
kanwalrafique

Hi, I read your code and the PhoneGap background Geolocation API docs as well. Changing your code from W3C's Geolocation API to PhoneGap background Geolocation API is mostly straightforward. And I've already made chang Plus

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(15 Commentaires)
4.0
dgtalsoft01

Dear employer. Your requirements are all clear to understand. I have enough experience in this part. But I have some question about your project. So please reply as soon as possible. I promise you will get the high Plus

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(8 Commentaires)
3.7
ankittater

Hi, I have 5 + years of experience as frontend, backend, hybrid mobile development , I have complete skills in,node, angular, mean , ionic html,css and many more framework I do very quality work, please consider my pr Plus

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(3 Commentaires)
2.9
%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(0 Commentaires)
0.0