restservice platform for bundeling services into one entry point
implemented so far:
more will come
only via composer
$ curl -sS https://getcomposer.org/installer | php
$ mv composer.phar /usr/local/bin/composer
$ git clone https://github.com/mrbase/muneris.git
$ cd muneris
$ cp app/config/parameters.yml.dist app/config/parameters.yml
$ vim app/config/parameters.yml
$ composer install
- Purchase a GeoPostcode database
- Download and save the .csv file on the server.
- run:
php app/console --env=prod muneris:gpc:import /path/to/file.csv
- wait … it will take a long time, depending on the size of the purchased database.
To use these services you need keys for both.
http://server/gpc/countries/{iso2 country code}/cities/{city name}.json
http://server/gpc/countries/{iso2 country code}/postcodes/{zip code}.json
http://server/gpc/countries/{iso2 country code}/postcodes.json
eks:
http://server/gpc/countries/DK/cities/Kolding.json
http://server/gpc/countries/DK/postcodes/6000.json
http://server/gpc/countries/DK/postcodes.json
http://server/nno/numbers/{phone number}.json
eks:
http://server/nno/numbers/70260085.json
http://server/mm/cities/{ip2long}.json
The ip send must be ip2long formatted, here are docs on how to do this in php and javascript
eks:
http://server/mm/cities/1522126436.json