{"info":{"_postman_id":"d3c4c7e8-8c45-6dfd-a96f-01e38b04fd53","name":"Location Clustering","description":"<html><head></head><body><h1 id=\"introduction\">Introduction</h1>\n<p>This API allows to manage your POIs or stores in a easy way allowing doing geofencing in your web or application with just a few REST calls.</p>\n<h1 id=\"overview\">Overview</h1>\n<p>The <b>API is a RestFUL webservice</b>. The user must register and activate the account using the same API.</p>\n<h1 id=\"authentication\">Authentication</h1>\n<p>The client authentication is done by a <b>provided API token</b> once the user is registered. Only registered and activated clients can use the API.</p>\n<h1 id=\"error-codes\">Error Codes</h1>\n<p>If the <b>operation goes well, a 200 HTTP</b> code is returned with the spected response. In case of an error, the code could be:</p>\n<ul>\n<li>HTTP Bad Request (400)</li>\n<li>HTTP Internal Server Error (500)</li>\n</ul>\n\n<p>With one of the following codes:</p>\n<ul>\n<li>1000 -&gt; <b>MISSING PARAMETER</b> (A parameter is expected but it has not been provided in the request)</li>\n<li>1001 -&gt; <b>INVALID PARAMETER VALUE</b> (The parameter value is not expected)</li>\n<li>1002 -&gt; <b>CLIENT ALREADY EXISTS</b> (When registering a client but the client already exists)</li>\n<li>1003 -&gt; <b>CLIENT ALREADY ACTIVATED</b> (When activating a client but the client is already activated)</li>\n<li>1004 -&gt; <b>INVALID FORMAT</b> (When receiving a bad formatted JSON)</li>\n<li>1005 -&gt; <b>INVALID CLIENT STATUS</b> (The client status is not the expected one)</li>\n<li>1006 -&gt; <b>MISSING FIELD</b> (A field is expected but not received in the JSON)</li>\n<li>2000 -&gt; <b>INVALID KEY</b> (The client API key is not valid)</li>\n<li>5000 -&gt; <b>INTERNAL SERVER ERROR</b> (Any other error not due to user interaction)</li>\n</ul>\n\n<p>Any response has the format in JSON:\n<br></p>\n<pre>{\n    \"result\": {\n        \"errorCode\": XXXX,\n        \"errorMessage\": \"Error message\"\n    },\n    \"success\": false,\n    \"time\": 1513428843938\n}\n</pre>\n\n<p>The <b>result</b> value may contain an error,  like the example or if there is no error, the expected result of the operation. To know when there have been an error or not you can check if the <b>success</b> parameter value is \"true\" or not. The <b>time</b> is the time in milliseconds of the response.</p>\n<h1 id=\"rate-limit\">Rate limit</h1>\n<p>There is no rate limit in API requests that an user can send.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"Introduction","slug":"introduction"},{"content":"Overview","slug":"overview"},{"content":"Authentication","slug":"authentication"},{"content":"Error Codes","slug":"error-codes"},{"content":"Rate limit","slug":"rate-limit"}],"owner":"2072562","collectionId":"d3c4c7e8-8c45-6dfd-a96f-01e38b04fd53","publishedId":"7Lhjkb1","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2017-12-16T12:23:03.000Z"},"item":[{"name":"Add Client","id":"c46646c3-8c86-1c85-fbba-4c826fdd952a","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n  \"name\":\"My name\",\r\n  \"tradeName\":\"My commercial name\",\r\n  \"email\":\"myemail@mail.com\",\r\n  \"telephone1\":\"telephone\",\r\n  \"contactName\":\"name\",\r\n  \"contactSurname\":\"surname\",\r\n  \"contactPosition\":\"position\",\r\n  \"contactEmail\":\"contactmail@mail.com\",\r\n  \"contactTelephone1\":\"telephone\",\r\n  \"contactTelephone2\":\"telephone\",\r\n  \"countryCode\":\"en\",\r\n  \"defaultLocale\":\"en\",\r\n  \"details\":\"\",\r\n  \"url\":\"http://www.javocsoft.es\"\r\n}"},"url":"http://api.cl.javocsoft.es/ws/api/lclustering/v1/client/add","description":"<p>This request allows to sign up into Geofencing API.</p>\n","urlObject":{"protocol":"http","path":["ws","api","lclustering","v1","client","add"],"host":["api","cl","javocsoft","es"],"query":[],"variable":[]}},"response":[],"_postman_id":"c46646c3-8c86-1c85-fbba-4c826fdd952a"},{"name":"Activate Client HTML","id":"0d86f225-3347-857e-fc50-aec8747f5f4d","request":{"method":"GET","header":[{"key":"Content-Type","value":"text/html"}],"body":{"mode":"raw","raw":"{\r\n  \"name\":\"Javier Gonzalez Serrano\",\r\n  \"tradeName\":\"JavocSoft S.L\",\r\n  \"email\":\"javocsoft@gmail.com\",\r\n  \"telephone1\":\"934203479\",\r\n  \"contactName\":\"Javier\",\r\n  \"contactSurname\":\"Gonzalez Serrano\",\r\n  \"contactPosition\":\"CEO\",\r\n  \"contactEmail\":\"javiergs5676@gmail.com\",\r\n  \"contactTelephone1\":\"657779257\",\r\n  \"contactTelephone2\":\"\",\r\n  \"countryCode\":\"es\",\r\n  \"defaultLocale\":\"es\",\r\n  \"details\":\"\",\r\n  \"url\":\"http://www.javocsoft.es\"\r\n}"},"url":"http://api.cl.javocsoft.es/ws/api/lclustering/v1/client/activate/<activation_code>","description":"<p>This request allows to ACTIVATE a recently added client given its activation code.</p>\n","urlObject":{"protocol":"http","path":["ws","api","lclustering","v1","client","activate","<activation_code>"],"host":["api","cl","javocsoft","es"],"query":[],"variable":[]}},"response":[],"_postman_id":"0d86f225-3347-857e-fc50-aec8747f5f4d"},{"name":"Get Clusters","id":"3f4e19c7-601c-f564-ad03-1fb586b72c08","request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"formdata","formdata":[]},"url":"http://api.cl.javocsoft.es/ws/api/lclustering/v1/<api_key>/clusters/list?lat=<latitude>&lng=<longitude>&locale=<locale>&maxgf=<max clusters>&radius=<radius in meters>&pixelDistanceMax=<pixel distance max>&zoomLevel=<zoom level>&clusterMinSize=<cluster min size>&clusterReturnMarkers=<return cluster locations>","description":"<p>This request allows to get the clusters for a given client. Parameters allow to set the default language, the max number of clusters to be returned and also de radius of the clustering from the location.</p>\n","urlObject":{"protocol":"http","path":["ws","api","lclustering","v1","<api_key>","clusters","list"],"host":["api","cl","javocsoft","es"],"query":[{"description":{"content":"<p>Required. The latitude of the location</p>\n","type":"text/plain"},"key":"lat","value":"<latitude>"},{"description":{"content":"<p>Required. The longitude of the location</p>\n","type":"text/plain"},"key":"lng","value":"<longitude>"},{"description":{"content":"<p>Optional. The language to use in any returned text. Default is \"en\".</p>\n","type":"text/plain"},"key":"locale","value":"<locale>"},{"description":{"content":"<p>Optional. The max number of clusters to return. Default value is 20.</p>\n","type":"text/plain"},"key":"maxgf","value":"<max clusters>"},{"description":{"content":"<p>Optional. The radius of the request to look POIs / Stores in from the location. Default is 1000 meters.</p>\n","type":"text/plain"},"key":"radius","value":"<radius in meters>"},{"description":{"content":"<p>Optional. A way to customize how points are clustered. Default is 40.</p>\n","type":"text/plain"},"key":"pixelDistanceMax","value":"<pixel distance max>"},{"description":{"content":"<p>Optional. The initial Maps Zoom, bigger is further. Default is 12.</p>\n","type":"text/plain"},"key":"zoomLevel","value":"<zoom level>"},{"description":{"content":"<p>Optional. The minimum locations of a cluster to become a cluster. Default is 8.</p>\n","type":"text/plain"},"key":"clusterMinSize","value":"<cluster min size>"},{"description":{"content":"<p>Optional. Set to true to get also the cluster locations. Default is false.</p>\n","type":"text/plain"},"key":"clusterReturnMarkers","value":"<return cluster locations>"}],"variable":[]}},"response":[],"_postman_id":"3f4e19c7-601c-f564-ad03-1fb586b72c08"},{"name":"Get Clusters HTML","id":"f53ccff7-ccf7-4198-d1bd-fd09af56526b","request":{"method":"GET","header":[{"key":"Content-Type","value":"text/html"}],"body":{"mode":"formdata","formdata":[]},"url":"http://api.cl.javocsoft.es/ws/api/lclustering/v1/<api_key>/clusters/list/html?lat=<latitude>&lng=<longitude>&locale=<locale>&maxgf=<max clusters>&radius=<radius in meters>&pixelDistanceMax=<pixel distance max>&zoomLevel=<zoom level>&clusterMinSize=<zoom level>&clusterReturnMarkers=<return cluster locations>&showGlobalCircle=<show request radius circle>&mapsApiKey=<maps_api_key>","description":"<p>This request allows to get the clusters for a given client. Parameters allow to set the default language, the max number of clusters to be returned and also de radius of the clustering from the location. An HTML with a map is returned.</p>\n","urlObject":{"protocol":"http","path":["ws","api","lclustering","v1","<api_key>","clusters","list","html"],"host":["api","cl","javocsoft","es"],"query":[{"description":{"content":"<p>Required. The latitude of the location.</p>\n","type":"text/plain"},"key":"lat","value":"<latitude>"},{"description":{"content":"<p>Required. The longitude of the location.</p>\n","type":"text/plain"},"key":"lng","value":"<longitude>"},{"description":{"content":"<p>Optional. The language to use in any returned text. Default is \"en\".</p>\n","type":"text/plain"},"key":"locale","value":"<locale>"},{"description":{"content":"<p>Optional. The max number of clusters to return. Default value is 20.</p>\n","type":"text/plain"},"key":"maxgf","value":"<max clusters>"},{"description":{"content":"<p>Optional. The radius of the request to look POIs / Stores in from the location. Default is 1000 meters.</p>\n","type":"text/plain"},"key":"radius","value":"<radius in meters>"},{"description":{"content":"<p>Optional. A way to customize how points are clustered. Default is 40.</p>\n","type":"text/plain"},"key":"pixelDistanceMax","value":"<pixel distance max>"},{"description":{"content":"<p>Optional. The initial Maps Zoom, bigger is further. Default is 12.</p>\n","type":"text/plain"},"key":"zoomLevel","value":"<zoom level>"},{"description":{"content":"<p>Optional. The minimum locations of a cluster to become a cluster. Default is 8.</p>\n","type":"text/plain"},"key":"clusterMinSize","value":"<zoom level>"},{"description":{"content":"<p>Optional. Set to true to get also the cluster locations. Default is false.</p>\n","type":"text/plain"},"key":"clusterReturnMarkers","value":"<return cluster locations>"},{"description":{"content":"<p>Optional. Show a circle representing the radius from the location. Default is true.</p>\n","type":"text/plain"},"key":"showGlobalCircle","value":"<show request radius circle>"},{"description":{"content":"<p>The Google Maps API Key. This is used to conform the map showing your clusters or POIs / Stores.</p>\n","type":"text/plain"},"key":"mapsApiKey","value":"<maps_api_key>"}],"variable":[]}},"response":[],"_postman_id":"f53ccff7-ccf7-4198-d1bd-fd09af56526b"},{"name":"Add/Update Stores","id":"3250a506-0875-7996-4c34-8cbb0e8e5cd3","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n\t\"stores\": \r\n\t\t\t[\r\n \t\t\t\t{\r\n\t \t\t\t\t\"idExternal\":\"idexternal1\",\r\n\t \t\t\t\t\"idExterna2\":\"idexternal2\",\r\n\t\t\t\t\t\"lat\":0.00000,\r\n\t\t\t\t\t\"lng\":0.00000,\r\n\t\t\t\t\t\"name\":\"Store 1\",\r\n\t\t\t\t\t\"description\":\"My store 1\",\r\n\t\t\t\t\t\"openingHours\":\"08:00-00:00\",\r\n\t\t\t\t\t\"openingHoursDetails\":\"All day\",\r\n\t\t\t\t\t\"address\":\"address info\",\r\n\t\t\t\t\t\"zipcode\":\"zipcode\",\r\n\t\t\t\t\t\"countryCode\":\"es\",\r\n\t\t\t\t\t\"city\":\"city\",\r\n\t\t\t\t\t\"telephone\":\"telephone\",\r\n\t\t\t\t\t\"fax\":\"fax_number\",\r\n\t\t\t\t\t\"email\":\"storemail@mail.com\",\r\n\t\t\t\t\t\"url\":\"url\"\r\n \t\t\t\t},\r\n \t\t\t\t{\r\n\t \t\t\t\t\"idExternal\":\"idexternal2\",\r\n\t\t\t\t\t\"lat\":0.00000,\r\n\t\t\t\t\t\"lng\":0.00000,\r\n\t\t\t\t\t\"name\":\"Store 2\",\r\n\t\t\t\t\t\"description\":\"My store 2\",\r\n\t\t\t\t\t\"openingHours\":\"08:00-00:00\",\r\n\t\t\t\t\t\"openingHoursDetails\":\"All day\",\r\n\t\t\t\t\t\"address\":\"address info\",\r\n\t\t\t\t\t\"zipcode\":\"zipcode\",\r\n\t\t\t\t\t\"countryCode\":\"es\",\r\n\t\t\t\t\t\"city\":\"city\",\r\n\t\t\t\t\t\"telephone\":\"telephone\",\r\n\t\t\t\t\t\"fax\":\"fax_number\",\r\n\t\t\t\t\t\"email\":\"storemail@mail.com\",\r\n\t\t\t\t\t\"url\":\"url\"\r\n \t\t\t\t}\r\n \t\t\t]\r\n}"},"url":"http://api.cl.javocsoft.es/ws/api/lclustering/v1/<api_key>/client/store/add","description":"<p>This request allows to add or uodate stores/POIs of a given activated client.</p>\n","urlObject":{"protocol":"http","path":["ws","api","lclustering","v1","<api_key>","client","store","add"],"host":["api","cl","javocsoft","es"],"query":[],"variable":[]}},"response":[],"_postman_id":"3250a506-0875-7996-4c34-8cbb0e8e5cd3"},{"name":"Remove Stores","id":"bac71d70-7c8f-4f7e-378a-d380f1acc502","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n\t\"stores\": \r\n\t\t\t[\r\n \t\t\t\t{\r\n\t \t\t\t\t\"idExternal\":\"idexterno1\",\r\n\t\t\t\t\t\"name\":\"Casa\"\r\n \t\t\t\t},\r\n \t\t\t\t{\r\n\t \t\t\t\t\"idExternal\":\"idexterno2\",\r\n\t\t\t\t\t\"name\":\"Casa 2\"\r\n \t\t\t\t}\r\n \t\t\t]\r\n}"},"url":"http://api.cl.javocsoft.es/ws/api/lclustering/v1/<api_key>/client/store/remove?onlyDisable=true","description":"<p>This request allows to remove stores/POIs of a given activated client. Set a parameter called \"onlyDisable\" to disable them instead of removing.</p>\n","urlObject":{"protocol":"http","path":["ws","api","lclustering","v1","<api_key>","client","store","remove"],"host":["api","cl","javocsoft","es"],"query":[{"description":{"content":"<p>Optional. Set to FALSE to remove them instead of only disable. Default value is TRUE.</p>\n","type":"text/plain"},"key":"onlyDisable","value":"true"}],"variable":[]}},"response":[],"_postman_id":"bac71d70-7c8f-4f7e-378a-d380f1acc502"},{"name":"Enable/Disable Stores","id":"b5e76537-adda-174e-494c-5a3dfe291d2b","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n\t\"stores\": \r\n\t\t\t[\r\n \t\t\t\t{\r\n\t \t\t\t\t\"idExternal\":\"idexterno1\",\r\n\t\t\t\t\t\"name\":\"Casa\"\r\n \t\t\t\t},\r\n \t\t\t\t{\r\n\t \t\t\t\t\"idExternal\":\"idexterno2\",\r\n\t\t\t\t\t\"name\":\"Casa 2\"\r\n \t\t\t\t}\r\n \t\t\t]\r\n}"},"url":"http://api.cl.javocsoft.es/ws/api/lclustering/v1/<api_key>/client/store/enable","description":"<p>This request allows to enable/disable stores/POIs of a given activated client. If an store has the status field, it will be set, otherwise store will be enabled.</p>\n","urlObject":{"protocol":"http","path":["ws","api","lclustering","v1","<api_key>","client","store","enable"],"host":["api","cl","javocsoft","es"],"query":[],"variable":[]}},"response":[],"_postman_id":"b5e76537-adda-174e-494c-5a3dfe291d2b"},{"name":"List Stores","id":"7574b403-8107-7c05-6a17-db5148d9fc9c","request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n\t\"stores\": \r\n\t\t\t[\r\n \t\t\t\t{\r\n\t \t\t\t\t\"idExternal\":\"idexterno1\",\r\n\t\t\t\t\t\"name\":\"Casa\"\r\n \t\t\t\t},\r\n \t\t\t\t{\r\n\t \t\t\t\t\"idExternal\":\"idexterno2\",\r\n\t\t\t\t\t\"name\":\"Casa 2\"\r\n \t\t\t\t}\r\n \t\t\t]\r\n}"},"url":"http://api.cl.javocsoft.es/ws/api/lclustering/v1/<api_key>/client/store/list","description":"<p>This request allows to list stores/POIs of a given activated client.</p>\n","urlObject":{"protocol":"http","path":["ws","api","lclustering","v1","<api_key>","client","store","list"],"host":["api","cl","javocsoft","es"],"query":[],"variable":[]}},"response":[],"_postman_id":"7574b403-8107-7c05-6a17-db5148d9fc9c"},{"name":"List Stores HTML","id":"77726ec7-a959-46e4-444e-bd157ebd3ebf","request":{"method":"GET","header":[{"key":"Content-Type","value":"text/html"}],"body":{"mode":"raw","raw":"{\r\n\t\"stores\": \r\n\t\t\t[\r\n \t\t\t\t{\r\n\t \t\t\t\t\"idExternal\":\"idexterno1\",\r\n\t\t\t\t\t\"name\":\"Casa\"\r\n \t\t\t\t},\r\n \t\t\t\t{\r\n\t \t\t\t\t\"idExternal\":\"idexterno2\",\r\n\t\t\t\t\t\"name\":\"Casa 2\"\r\n \t\t\t\t}\r\n \t\t\t]\r\n}"},"url":"http://api.cl.javocsoft.es/ws/api/lclustering/v1/<api_key>/client/store/list/html","description":"<p>This request allows to list stores/POIs of a given activated client in a Google MAPS HTML.</p>\n","urlObject":{"protocol":"http","path":["ws","api","lclustering","v1","<api_key>","client","store","list","html"],"host":["api","cl","javocsoft","es"],"query":[],"variable":[]}},"response":[],"_postman_id":"77726ec7-a959-46e4-444e-bd157ebd3ebf"},{"name":"Activate Client copy","id":"c912c955-53db-6808-d13b-8122fbf6a2dc","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"http://api.cl.javocsoft.es/ws/api/lclustering/v1/client/activate/<activation_code>","description":"<p>This request allows to ACTIVATE a recently added client given its activation code.</p>\n","urlObject":{"protocol":"http","path":["ws","api","lclustering","v1","client","activate","<activation_code>"],"host":["api","cl","javocsoft","es"],"query":[],"variable":[]}},"response":[],"_postman_id":"c912c955-53db-6808-d13b-8122fbf6a2dc"}]}