Skip to content

andremene182/cities-info-service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cities info

Cities info web service. It gives you information about weather and businesses about up to 5 cities for every request.

Installation

Use npm install to install all the dependencies.

Usage

The service can be called in GET mode at the /cities-info endpoint with the following parameters:

cities -> comma separated cities, maximum 5. ex: milan,padua,bologna,new york,madrid

weather -> desired type of weather data set, also separated by comma. Accepted parameters: hourly,minutely,daily,current,alerts Default: daily, current

businesses_sort -> sorting mode of the businesses of the city. Accepted parameters: match, rating, review, distance. Default: rating

Example of request: https://yoursite/v1/cities-info?cities=milano,padova,bologna,venezia,madrid&weather=daily&businesses_sort=distance

The service response is an array of objects (one for each requested city) containing this information: [ { {location: lat, lon, city_name}, {weather: [weather info]} {businesses: [businesses info]} } ]

About

Cities info API.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published