Skip to content

isatishp/places-api-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

places-api-demo

This Service lists two APIs:

  1. Find a place

    http://localhost:8080/places/<name_of_the_place_to_be_searched>

  2. Search places nearby based on category

    http://localhost:8080/places?category=<category_to_be_searched>&location=<lat,lng>

Steps to run:

  1. Get Google API key here: https://developers.google.com/places/web-service/get-api-key

  2. Run the application setting VM args as -Dgooglemaps.api.key=<YOUR_API_KEY>

The service is developed to accomodate any other Places api provider with minimal changes to the code.

Sample Requests:

http://localhost:8080/places/pimple saudagar

http://localhost:8080/places/pune

http://localhost:8080/places/xyz

http://localhost:8080/places?category=gas_station&location=18.5986763,73.79783479999999

http://localhost:8080/places?category=park&location=18.5986763,73.79783479999999

http://localhost:8080/places?category=restaurant&location=18.5986763,73.79783479999999

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages