Search Nearby Places

Overview of the application

This application will read user's current location and based on user's input, it will display nearby places like ATM's, Banks, Restaurants, Hospitals etc. Below languages have been used in this app :


  • HTML 5.0 to read user's current location (latitude and longitude).
  • Javascript to get user's current address from his current location (latitude and longitude).
  • Javascript and Visualforce to display user's current location on google maps.
  • Apex: REST call to Google's nearby places API to get nearby places within a specified range.
You can host this application on a Force.com site so that it can be accessed publicly.


Code is uploaded @ GitHub Repo

Steps to register for Google API Key :
  •   Log in to the following URL using google account:         https://console.developers.google.com/project
  •  Create a new project.
  • Click on project, go to Api's (under APIs and auth).
  • Click on Google Places API Web Service.
  • Click on Enable 
  • Click on Credentials and find the key


Your feedback and comments will be appreciated. Happy coding :)

Comments

Popular posts from this blog

Salesforce Lightning: Countdown timer

Salesforce Hacks: System.LimitException: Too many queueable jobs added to the queue: 2

Building an Org Role Hierarchy component in LWC