Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Localising results in Google Places Autocomplete plugin (InSum)

Scott WesleyMar 23 2018 — edited Jun 26 2018

I've experimented with InSum's Google Places Autocomplete Plugin

https://github.com/insum-labs/apex-plugin-google-places-autocomplete

which is a fairly simple wrapper for a google maps API.

I wanted to localise the results, and it seems there are parameters allow you to do so

https://developers.google.com/places/web-service/autocomplete#place_types

I thought it may be a matter of changing this PL/SQL assignment

l\_js\_params := '?key=' || l\_api\_key || '&libraries=places';

to this

l\_js\_params := '?key=' || l\_api\_key || '&libraries=places&location=-31,115&radius=50000';

to get addresses within 50km of the given location, but I still get results from other countries, even if I also add the strictbounds parameter

pastedImage_3.png

Any suggestions?

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 24 2018
Added on Mar 23 2018
13 comments
1,160 views