look sh
Posts: 0
Joined: Sun Mar 01, 2015 1:09 pm

near by

bnjr ,
comment peux je implementer near by dans appery avec le map , j'ai essaye beaucoup de chose dans java script rien ne marche , le fonction my location marche bien mais near by no.
je pense que la fonction var service = new google.maps.places.PlacesService(map); ne marche pas dans appery , quelq'un peut m'aide s'il vous plait ???

look sh
Posts: 0
Joined: Sun Mar 01, 2015 1:09 pm

near by

how can i implement "near by " in map with appery.io, please help me

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

near by

Hello,

You can use "geoSpatial" requests for this goal.

Please take a look here about it: http://devcenter.appery.io/documentat...

Regards.

look sh
Posts: 0
Joined: Sun Mar 01, 2015 1:09 pm

near by

thanks for your reply ,
but i can't programming it with java script directly ??

look sh
Posts: 0
Joined: Sun Mar 01, 2015 1:09 pm

near by

var map;
var infowindow;

function initialize() {
var pyrmont = new google.maps.LatLng(-33.8665433, 151.1956316);

var request = {
location: pyrmont,
radius: 500,
types: ['store']
};
infowindow = new google.maps.InfoWindow();
var service = new google.maps.places.PlacesService(map);
service.nearbySearch(request, callback);
}

function callback(results, status) {
if (status == google.maps.places.PlacesServiceStatus.OK) {
for (var i = 0; i < results.length; i++) {
createMarker(results);
}
}
}

function createMarker(place) {
var placeLoc = place.geometry.location;
var marker = new google.maps.Marker({
map: map,
position: place.geometry.location
});

}

...............................................................................................................

this is the code of google in javascript why is not work in appery ???
i think this function is not work var service = new google.maps.places.PlacesService(map);
can you tell me where is the wrong ?

regards

look sh
Posts: 0
Joined: Sun Mar 01, 2015 1:09 pm

near by

plz help me , your first reply is for data base , i don't use it , i search for nearby , for exemple , the restaurant near for my location , this is my probleme ,,
i have a project for university , i start my work with appery and i see this probleme i can't change my platforme , because i written about this technology in my rapport , plz help me ...
regards

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

near by

Hello,

It looks you don't have "places" library in google maps.

So please try the following:

  1. Open Application settings.

  2. Navigate to "External resources" tab.

  3. Add new external resource:

    pre

    http:&#47;&#47;maps&#46;googleapis&#46;com/maps/api/js?sensor=false&libraries=places

    /pre

    Details: http://prntscr.com/6hcd4w/direct

    Regards.

Maarten Albrecht
Posts: 0
Joined: Mon Aug 17, 2015 8:18 pm

near by

Have the same problem,

map = Apperyio("google_map").gmap;
var placesService = new google.maps.places.PlacesService(map);

shows a spinner for a second and then the screen goes blank.

when i comment the placesService, the map component is shown...

tried to add http://maps.googleapis.com/maps/api/j... to the app settings, but doesn't seem to have any effect unfortunately :(

please help

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

near by

Hello Maarten,

Could you please clarify do you have any errors in a browser console?

Return to “Issues”