Page 1 of 1

Email my current Geo Location

Posted: Thu Mar 06, 2014 9:12 am
by Jaffrey Farhat

Hey
I want to develop an app which should be able to find my current location and send my Longitude and Latitude with 2 text boxes where I can enter my phone number & a short message. All this to a predefined email....

Regards
Jaffrey


Email my current Geo Location

Posted: Thu Mar 06, 2014 9:32 am
by Nikita

Hi Jaffrey,

Please look at the following documentation:
Get coordinates:
http://docs.appery.io/tutorials/build...
Send email:
http://docs.appery.io/documentation/p...


Email my current Geo Location

Posted: Sun Mar 09, 2014 10:36 am
by Jaffrey Farhat

I tried with the first link every thing is fine but the marker is not showing..I mean the red pin does not drop on my location...
Screen Shot
http://prntscr.com/2z8z42


Email my current Geo Location

Posted: Mon Mar 10, 2014 4:19 am
by Illya Stepanov

Dear Jaffrey,

You can't see a marker because you haven't add it.

Please add following code to success datasource event if you want to display it.
pre
var apperyMap = Appery('googlemap_15');

var myLatlng = new google.maps.LatLng(apperyMap.options.latitude, apperyMap.options.longitude);
var marker = new google.maps.Marker({
position: myLatlng,
map: apperyMap.gmap,
title:"Hello World!"
});
/pre


Email my current Geo Location

Posted: Mon Mar 10, 2014 6:19 am
by Jaffrey Farhat

thanks for the reply I did it by mapping and it is working, now my final step after this is completed I will be upgrading my plan to paid plan and will add more paging, so please help me with one more final step, now that when I press (where am I) button I can see marker on my current location, just what to add 2 text boxes where the customer can enter his contact and a short message and a send button, when he click the send button the current latitude and longitude and 2 text box information should be send to a mentioned email like a href="mailto:xyz@gmail.com" rel="nofollow"xyz@gmail.com/a..using ur sendgrid..

Regards
Jaffrey


Email my current Geo Location

Posted: Mon Mar 10, 2014 10:49 pm
by Alena Prykhodko

Hi Jaffrey.

Please try the following:

  1. Drop 2 contact information inputs on the page.

  2. Rename the first to "input_latitude".

  3. Rename the second to "input_longitude".

  4. Replace the previous code:

    pre
    var apperyMap = Appery('googlemap_15');

    //Populating latitude input by the user latitude.
    Appery("input_latitude").val(apperyMap.options.latitude);

    //Populating latitude input by the user longitude.
    Appery("input_longitude").val(apperyMap.options.longitude);

    var myLatlng = new google.maps.LatLng(apperyMap.options.latitude, apperyMap.options.longitude);
    var marker = new google.maps.Marker({
    position: myLatlng,
    map: apperyMap.gmap,
    title:"Hello World!"
    });
    /pre
    Add database service ("create" or "update") and make mapping from your 4 inputs on the page to request parameters.
    Find more here: http://docs.appery.io/tutorials/build...

  5. Invoke previous service on button click.