Jaffrey Farhat
Posts: 0
Joined: Thu Mar 06, 2014 9:12 am

Email my current Geo Location

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

Nikita
Posts: 0
Joined: Fri Feb 28, 2014 4:02 pm

Email my current Geo Location

Hi Jaffrey,

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

Jaffrey Farhat
Posts: 0
Joined: Thu Mar 06, 2014 9:12 am

Email my current Geo Location

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

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

Email my current Geo Location

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

Jaffrey Farhat
Posts: 0
Joined: Thu Mar 06, 2014 9:12 am

Email my current Geo Location

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

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

Email my current Geo Location

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.

Return to “Issues”