Forum Academy Marketplace Showcase Pricing Features

Google Maps Places Plugins: a few questions regarding the API call method

Hi Bubblers!!

I’ve tried exploring several sites to no avail! My question is pretty straight forward:

What parameter, tag, or command can be used in an browser’s api GET call in order to retrieve the current user’s geographical location?

-OR-

Do I just have to use a geolocation api to call for the geographic location and pass that lat,long data to another api call?

An instance: I am interested in having the current user’s current geographic location be included in a Google Maps API call for a Nearby Search of “honey” relative to the user’s current geographical location.

Thanks in advance!

Jp

Can’t you just use the Places plugin ?

@NigelG, I have been trying to figure out how to set up the Places API correctly with the map in the app and search terms, in order to perform the search I want.

My issues:

  1. When a user enters a search keyword, the Map element automatically populates place markers on the map, even though the user has not punched the “search” button yet.

  2. I have set up a repeating group for the Places plugin to populate its results to, in order for me to do some result filtering; however, issue #1 from above continues.

  3. The Places plugin’s “radius” is set to meters, and I need miles (I’m in America), and I am unable to do a formula calculation to convert the meters to miles.

  4. Although the current geographic location feature is nice, what happens if the user wants to do a search near a different location?

Just a few issues I’m trying to work out right now…

Jp

  1. When a user enters a search keyword, the Map element automatically populates place markers on the map, even though the user has not punched the “search” button yet.

Use an action instead of pointing the map at dynamic data.

  1. I have set up a repeating group for the Places plugin to populate its results to, in order for me to do some result filtering; however, issue #1 from above continues.

As above, use an action instead,

  1. The Places plugin’s “radius” is set to meters, and I need miles (I’m in America), and I am unable to do a formula calculation to convert the meters to miles.

What does the Places API look like, what type of search ?

  1. Although the current geographic location feature is nice, what happens if the user wants to do a search near a different location?

In that case you put the map in a group, and have the group’s content be a geographic place. So you can toggle between searching for a place and a “my location button”.