- Clone the repository:
git clone https://github.com/rabbishuki/mychag.git. - Move into the new directory
cd mychag. - Install the NodeJS dependencies:
npm installcan take a minute... - Configure the
process.envobject. - Run the server:
node server.js. - Start sending API requests, as per documentation.
- 1.0 - 5/22/2017 (26 Iyar 5777)
returns the 5 closest ads to location sent.
message: "5 results found",
location: {
lat: "31.776719",
lng: "35.234508"
},
ads: [{
id: number,
date: string,
title: string,
imgFile: string,
comment: string,
location: {
lat: float,
lng: float,
formatted_address: string,
distance: float
},
userInfo: {
name: string,
phone: string,
email: string
}
out: {
Link: string,
LinkText: string
}
},...]
}