archive-org.com » ORG » G » GEOCODER-PHP.ORG

Total: 8

Choose link from "Titles, links and description words view":

Or switch to "Titles and links view".
  • Geocoder - The almost missing Geocoder PHP library!
    GeoCoder us IGN OpenLS DataScienceToolkit Yandex GeoPlugin GeoIPs MaxMind web service MaxMind binary file Geonames IpGeoBase Baidu TomTom and ArcGIS Online Documentation Here are the links to the official and complete documentation pages Geocoder documentation GeocodableBehavior documentation Propel GeocoderBundle documentation Symfony2 StackGeoIp documentation Stack Middleware GeocoderServiceProvider documentation Silex GeocoderLaravel documentation Laravel 4 Cookbook In this cookbook you will find specific solutions for specific needs License Geocoder and its related projects

    Original URL path: http://geocoder-php.org/ (2016-04-30)
    Open archived version from archive


  • Geocoder - The almost missing Geocoder PHP library!
    on GitHub geocoder php Geocoder Download ZIP File Download TAR Ball View On GitHub Logo You will find our logo in different formats below Adobe Illustrator SVG PNG This project is maintained by William Durand and awesome people Logo designed

    Original URL path: http://geocoder-php.org/logo.html (2016-04-30)
    Open archived version from archive

  • Geocoder | Geocoder - The almost missing Geocoder PHP library!
    APIs you need HTTP adapters While it was part of the library in Geocoder 1 x and 2 x Geocoder 3 x and upper now relies on the PSR 7 Standard which defines how HTTP message should be implemented Choose any library that follows this PSR and implement the specified interfaces to use with Geocoder As making choices is rather hard Geocoder ships with the egeloen http adapter library by default but it is up to you to choose a different implementation Note not all providers are HTTP based Providers Providers perform the geocoding black magic for you talking to the APIs fetching results dealing with errors etc an are highly configurable Address based Providers Provider Name Reverse SSL Coverage Multiple Terms ArcGIS Online arcgis online yes supported worldwide yes requires API key 1250 requests free Bing Maps bing maps yes no worldwide yes requires API key Limit 10 000 requests per month Chain chain meta provider which iterates over a list of providers Geonames geonames yes no worldwide yes requires registration no free tier Google Maps google maps yes supported worldwide yes requires API key Limit 2500 requests per day Google Maps for Business google maps business yes supported worldwide yes requires API key Limit 100 000 requests per day MapQuest map quest yes no worldwide yes both open and commercial service require API key Nominatim nominatim yes supported worldwide yes requires a domain name e g local installation OpenCage opencage yes supported worldwide yes requires API key 2500 requests day free OpenStreetMap openstreetmap yes no worldwide yes heavy users 1q s get banned TomTom tomtom yes required worldwide yes requires API key First 2500 requests or 30 days free Yandex yandex yes no worldwide yes Below you will find more information for these providers ArcGISOnline It is possible to specify a sourceCountry to restrict result to this specific country thus reducing request time note that this doesn t work on reverse geocoding GeoIP2 It requires either the database file or the webservice represented by the GeoIP2 which is injected to the GeoIP2Adapter The geoip2 geoip2 package must be installed This provider will only work with the corresponding GeoIP2Adapter php Maxmind GeoIP2 Provider e g the database reader reader new GeoIp2 Database Reader path to database adapter new Geocoder Adapter GeoIP2Adapter reader geocoder new Geocoder Provider GeoIP2 adapter address geocoder geocode 74 200 247 59 first GoogleMaps Locale and or region can be specified geocoder new Geocoder Provider GoogleMaps httpAdapter locale region useSsl true false apiKey GoogleMapsBusiness A valid Client ID is required The private key is optional This provider also supports SSL and extends the GoogleMaps provider MaxMindBinary This provider requires a data file and the geoip geoip package must be installed It is worth mentioning that this provider has serious performance issues and should not be used in production For more information please read issue 301 Nominatim Access to a Nominatim server is required See the Nominatim Wiki Page for more information TomTom The default langage locale

    Original URL path: http://geocoder-php.org/Geocoder/ (2016-04-30)
    Open archived version from archive

  • GeocodableBehavior | Geocoder - The almost missing Geocoder PHP library!
    Peer class of the geocoded model a comparison sign Criteria LESS THAN is the default value It will add a filter by distance on your current query and returns itself for fluid interface filterNear takes three arguments a model object a distance value a measure unit KILOMETERS UNIT MILES UNIT or NAUTICAL MILES UNIT defined in the Peer class of the geocoded model Automatic Geocoding At this step you have to fill in the two columns latitude and longitude yourself It s not really useful right Automatic geocoding to the rescue There are two automatic ways to get geocoded information using IP addresses using street addresses It provides a geocode method that autoupdate the location values To prevent autofill when modified just set auto update attribute to false This method returns a ResultInterface object so you can override this method to fill in more fields depending on your model php class MyObject extends BaseMyObject inheritdoc public function geocode if null result parent geocode if city result getCity this setCity city return result Note You can use both at the same time IP Based Geocoding To enable the IP Based geocoding add the following configuration in your schema xml file behavior name geocodable parameter name geocode ip value true parameter name geocoder api key value API KEY parameter name geocoder api key provider value API KEY PROVIDER behavior The geocoder api key provider can be either a static method returning the api key A class method in the format class method or class method subMethod or a class implementing getGoogleMapsKey which must return the key By default the default Geocoder provider is YahooProvider so you ll need to fill in an API key If you want to use another provider you ll need to set a new parameter parameter name geocoder provider value Geocoder Provider HostIpProvider Read the Geocoder documentation to know more about providers This configuration will add a new column to your model ip address You can change the name of this column using the following parameter parameter name ip column value ip The behavior will now use the ip address value to populate the latitude and longitude columns thanks to Geocoder Address Based Geocoding To enable the Address Based geocoding add the following configuration behavior name geocodable parameter name geocode address value true parameter name geocoder api key value API KEY behavior By default the default Geocoder provider is YahooProvider so you ll need to fill in an API key but keep in mind it s an optional parameter depending on the provider you choose If you want to use another provider you ll need to set a new parameter parameter name geocoder provider value Geocoder Provider GoogleMapsProvider Read the Geocoder documentation to know more about providers Basically the behavior looks for attributes called street locality region fpostal code and country It tries to make a complete address with them As usual you can tweak this parameter to add your own list of attributes that represents a complete

    Original URL path: http://geocoder-php.org/GeocodableBehavior/ (2016-04-30)
    Open archived version from archive

  • BazingaGeocoderBundle | Geocoder - The almost missing Geocoder PHP library!
    limit 5 find return array geocoded result nearest objects objects In the example we ll retrieve information from the user s IP address and 5 objects nears him But it won t work on your local environment that s why this bundle provides an easy way to fake this behavior by using a fake ip configuration app config config dev yml bazinga geocoder fake ip 123 345 643 133 If set the parameter will replace the REMOTE ADDR value by the given one Additionally if it interferes with your current listeners You can set up different fake ip listener priority app config config dev yml bazinga geocoder fake ip ip 123 345 643 133 priority 128 Dumpers If you need to dump your geocoded data to a specific format you can use the Dumper component The following dumper s are supported Geojson GPX KMP WKB WKT Here is an example php public function geocodeAction Request request result this container get bazinga geocoder geocoder geocode request server get REMOTE ADDR body this container get bazinga geocoder dumper manager get geojson dump result response new Response response setContent body return response To register a new dumper you must tag it with geocoder dumper Geocoder detect and register it automatically A little example service id some dumper class some dumper class tag name geocoder dumper alias custom service Cache Provider Sometimes you have to cache the results from a provider For this case the bundle provides a cache provider The cache provider wraps another provider and delegate all calls to this provider and cache the return value Configuration example app config config yml services acme cache adapter class Doctrine Common Cache ApcCache bazinga geocoder providers cache adapter acme cache adapter provider google maps google maps Tip If you want to configure the cache

    Original URL path: http://geocoder-php.org/BazingaGeocoderBundle/ (2016-04-30)
    Open archived version from archive

  • StackGeoIp | Geocoder - The almost missing Geocoder PHP library!
    a stable version to use avoid the stable meta constraint Usage Example Here we create a simple application that returns the IP address of the request and the contents of the X Country header to the browser Normally the X Country header would not exists By wrapping the GeoIP middleware around it using the StackBuilder if the IP address can be matched to a country the X Country header will be set to the two letter code for that country and be available to the application php use Symfony Component HttpFoundation Request use Symfony Component HttpFoundation Response use Symfony Component HttpFoundation RedirectResponse require DIR vendor autoload php app new Silex Application app get function Request request ip request getClientIp country request headers get X Country UNKNOWN return new Response ip country 200 stack new Stack Builder push Geocoder Stack GeoIp app stack resolve app request Request createFromGlobals response app handle request send app terminate request response Options The following options can be used adapter optional The Geocoder HTTP adapter to use Defaults to cURL adapter provider optional The Geocoder provider to use Defaults to the FreeGeoIP provider For production it is recommended to use a provider that relies on local

    Original URL path: http://geocoder-php.org/StackGeoIp/ (2016-04-30)
    Open archived version from archive

  • GeocoderServiceProvider | Geocoder - The almost missing Geocoder PHP library!
    app geocoder app geocoder do your stuff Configuration The service provider creates the following services geocoder the Geocoder instance geocoder provider the provider used by Geocoder geocoder adapter the HTTP adapter used to get data from remotes APIs By default the geocoder provider service uses FreeGeoIP and the geocoder adapter service uses the cURL adapter Override these services to use the adapter provider you want See the Geocoder documentation for

    Original URL path: http://geocoder-php.org/GeocoderServiceProvider/ (2016-04-30)
    Open archived version from archive

  • GeocoderLaravel | Geocoder - The almost missing Geocoder PHP library!
    key in app config app php and register the Geocoder Service Provider providers array Toin0u Geocoder GeocoderServiceProvider Find the aliases key in app config app php and register the Geocoder Facade aliases array Geocoder Toin0u Geocoder GeocoderFacade Configuration The service provider creates the following services geocoder the Geocoder instance geocoder provider the provider used by Geocoder geocoder adapter the HTTP adapter used to get data from remotes APIs By default

    Original URL path: http://geocoder-php.org/GeocoderLaravel/ (2016-04-30)
    Open archived version from archive



  •