Download the PHP package linkeddatacenter/geocodit without Composer

On this page you can find all versions of the php package linkeddatacenter/geocodit. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package geocodit

GeocodIT project

Latest Version

WARNING: this project now is under refactory

GeocodIT is a system that manages a geocoding knowledge base using W3C semantic web best practices and standards.

Data sets on the web are literary exploding. Of course they’re still fragmented and of different quality but that will be fixed and it is only a matter of time. With Linked Open Data, it does not make sense to use only the biggest dataset (i.e. Open Street Map, & Google Maps) because the highest quality data are often in the smallest ones. These are in the long tail of the web. Hence you’ve to use them or you’ll lose a lot of value.

GeocodIT exposes:

GeocodIT was designed for the italian territory but can be easily adapted to other geographies.

For more about GeocodIT project see this article

Demo

A running demo is available at http://geocodit.linkeddata.center/ . Please use this server just as a demo and learning resource. To avoid abuses, a performance penality of 2 sec. is added to each geocoder API call.

How it works

GeocodIT uses geocoder services (free and private) and open data to increase the quality of the geocoding process. For instance, it uses ISTAT open data to add codes to administrative level in Open Street Map Results.

Why it is needed

In some circumstances, commercial global services (like Google Maps) fail to solve addresses or produce inaccurate results. This often happens for some rural and isolated places, in private industral areas and in new sites. This information is sometime available in open data but it could also be present in private owned files.

GeocodIT tries to use all these data sources to produce accurate results.

Furthermore, commercial services put lot of constraints on GeocodIT data and this limit companies to embed geolocation data in their information systems.

Requirements

GeocodIT requires:

GeocodIT is a set of web services developed in PHP and tested for ubuntu LTS 14.04 but nothing prevents it to work on any PHP5+apache2 platform (no MySQL needed!). Even apache2 is not a strong requirement; with few changes (mainly to web/.httpcaccess file) it should work with any php-enabled web server.

Install

APIs installation

IMPORTANT: GeocodIT uses your keys to access payed services, if you put it in a public server, consider to limit APIs access by configuring your web server. The default configuration allows free access to all APIS but inserts a penality of 2 seconds to each api call to discurage abuse.

Knowledge base population

The demo knowledge base is pre-populated, use these instructions to create your own knowledge base:

Usage

GeocodIT can be used in different ways:

Using data interface

After data ingestion, the knowledge base data interfaces will be available at /queries (e.g. https://hub1.linkeddata.center/demo/queries). Just point your browser (or your http client) to the desidered table (e.g https://hub1.linkeddata.center/demo/table/istat:comuni) and provide your LinkedData.Center credential as basic http authentication. Data interface supports content negotiation. Of course you can access SPARQL endpoint (e.g. https://hub1.linkeddata.center/demo/query) fully compliant with SPARQL 1.1 specifications and protocol.

Using geocoder API

The geocoder enpoint will be available at /api/geocode (e.g. http://geocodit.linkeddata.center/api/geocode)

geocode?q=address[&trust=trust_profile]

It returns the address geolocation using a geocoding optimization.

Available trust profiles:

Beside this, you can trust on result from a single provider:

Using benchmark API

The benchmark enpoint will be available at /api/benchark (e.g. http://geocodit.linkeddata.center/api/benchark)

benchmark?q=address

It compares the result of all supported geocoders.

Using gateways

The GeocodIT gateways will be available at /gw/{gateway name} (e.g. http://geocodit.linkeddata.center/gw/).

All gateways stream a three star resource as a RDF turtle resource. Data are transformed in real time [TBD: and cached for one day].

Using geocodit as a library

Add the following dependance to composer.json file in your project root:

GeocodIT is a companion of Geocoder.

It exposes two additional providers: geocodit and geocoditOSM, the first is a stand alone provider that uses knowledge base data for toponimy resolution, the second is an extension of openstreetmap providers that enrich the geocoder algoritm with some open data (mainly by istat).

Choose the one that fits your needs first. Let's say the geocoditOSM one is what you were looking for, so let's see how to use it. In the code snippet below, curl has been chosen as HTTP layer but it is up to you since each HTTP-based provider implements PSR-7.

Extending geocodit

More or less you just have to find new data sources and design a proper ingestion policy to be added to the knowledge base configuration file. In some cases, you will have to write a gateway to transform data to RDF. Use existing gateways as a starting point. See the file [CONTRIBUTING.md] for some note about development environment.

License and Authors

Author: E.Fagnoni - Copyrigth: (c) 2016 http://LinkedData.Center/ The MIT License (MIT)


All versions of geocodit with dependencies

PHP Build Version
Package Version
Requires php Version >=5.5.0
botk/context Version ~4.1
botk/rdf Version ~4.1
botk/core Version ~5.1
easyrdf/easyrdf Version ~0.9
ml/json-ld Version *
willdurand/geocoder Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package linkeddatacenter/geocodit contains the following files

Loading the files please wait ....