Inspiration

we were thinking about snapKit stories and location tags, and suddenly thought it would be a great idea to get googlemaps search results for a specific region drawn on the map versus searching the whole rectangular region of the phone screen.

What it does

You use your cursor and draw a closed loop on the map, and then enter a particular category of an establishment you are searching for (eg. restaurants) and all restaurants within the enclosed region will be shown.

How we built it

Using google maps api's (Places/map api. . . etc.)

Challenges we ran into

-Trying to query too many times in too short a span of time, had to reduce the number of inputs in order to get responses -Trying to devise a method to retrieve an array of points that comprised of the coordinates within the closed loop drawn. We ended up using a Raycasting algorithm

Accomplishments that we're proud of

we built a webapp that works and could be useful???

What we learned

We learned how to work with API's and got a better understanding of the many developer tools on google cloud platform and snapKit etc..

What's next for Google Maps Closed Loop Search

Instead of on web, we build it into a mobile app!!!!

INSTRUCTIONS:: When on the googlemaps interface after opening the .html file, hold shift and hover your mouse over a certain region in googlemaps. Preferably the region should not be too big. And you'll see "restaurants" pop up. (The code has been specified for "restaurant" category. You may change it accordingly to the establishment type you desire.

Built With

Share this project:

Updates