This demo application demonstrates how to retrieve OpenStreetMap (OSM) Points of interest (POI) data from Clusterpoint Cloud and how to put such data on Google Maps.
You can access live demo at: http://osmpoi.endijs.com
- Sign up for Google Maps API Key
- Sign up for Clusterpoint Cloud account
- Rename
/cfg/cps-SAMPLE.php
tocps.php
and fill with your Clusterpoint Cloud credentials - Rename
/cfg/google-SAMPLE.php
togoogle.php
and fill with your Google Maps API key
Use Composer to install project dependencies
$ composer install
If you are not able to use Composer you can set up dependencies manually:
- Download Clusterpoint PHP Client and save it in project directory.
- In
/public/index.php
removerequire_once '../vendor/autoload.php';
and addrequire_once('/path_to_lib/cps_api.php');
. Replace/path_to_lib/
with actual path to Clusterpoint PHP Client. - Follow Slim framework manual installation instructions.