25 Şubat 2013 Pazartesi

Php Geocoding Kütüphanesi


Web servislerin sunduğu Geocoding hizmetlerini incelerken bir kütüphane ile karşılaştım. Bu kütüphane bir çok Geocoding servisini tek bir çatı altında toplamış. Alt seviyede end point tanımlamaları yapılmış. Size sadece  gerekiyorsa Api key gibi parametreleri oluşturmak kalıyor.  Desteklediği servislerin listesi şu şekilde.



  • FreeGeoIp as IP-Based geocoding provider;
  • HostIp as IP-Based geocoding provider;
  • IpInfoDB as IP-Based geocoding provider (city precision);
  • Yahoo! PlaceFinder as Address-Based geocoding and reverse geocoding provider;
  • Google Maps as Address-Based geocoding and reverse geocoding provider;
  • Google Maps for Business as Address-Based geocoding and reverse geocoding provider;
  • Bing Maps as Address-Based geocoding and reverse geocoding provider;
  • OpenStreetMaps as Address-Based geocoding and reverse geocoding provider;
  • CloudMade as Address-Based geocoding and reverse geocoding provider;
  • Geoip, the PHP extension, as IP-Based geocoding provider;
  • ChainProvider is a special provider that takes a list of providers and iterates over this list to get information;
  • MapQuest as Address-Based geocoding and reverse geocoding provider;
  • OIORest as very accurate Address-Based geocoding and reverse geocoding provider (exclusively in Denmark);
  • GeoCoder.ca as Address-Based geocoding and reverse geocoding provider (exclusively in USA & Canada);
  • GeoCoder.us as Address-Based geocoding provider (exclusively in USA);
  • IGN OpenLS as Address-Based geocoding provider (exclusively in France);
  • DataScienceToolkit as IP-Based geocoding provider or an Address-Based provider (exclusively in USA & Canada);
  • Yandex as Address-Based geocoding and reverse geocoding provider;
  • GeoPlugin as IP-Based geocoding provider;
  • GeoIPs as IP-Based geocoding provider;
  • MaxMind web service as IP-Based geocoding provider (City/ISP/Org and Omni services);
  • Geonames as Place-Based geocoding and reverse geocoding provider.
  • Benim ilk başta denediklerim Google ve MapQuest servisleri oldu. Herhangi bir Api key gerektirmeden deneyebilirsiniz. Projenin sayfasına bu linkten ulaşabilirsiniz. Google servisi oldukça detaylı bir sonuç listesi sunuyor. MapQuest aşağıdaki gibi bir json dökümanı sunuyor. 


{
  • results:
    [
    • {
      • locations:
        [
        • {
          • latLng:
            {
            • lng36.325898,
            • lat41.289354
            },
          • adminArea4"İlkadım",
          • adminArea5Type"City",
          • adminArea4Type"County",
          • adminArea5"Samsun",
          • street"",
          • adminArea1"Turkey",
          • adminArea3"Samsun",
          • type"s",
          • displayLatLng:
            {
            • lng36.325898,
            • lat41.289354
            },
          • linkId0,
          • postalCode"",
          • sideOfStreet"N",
          • dragPointfalse,
          • adminArea1Type"Country",
          • geocodeQuality"CITY",
          • geocodeQualityCode"A5XAX",
          • adminArea3Type"State"
          }
        ],
      • providedLocation:
        {
        • location"samsun"
        }
      }
    ],
  • options:
    {
    • ignoreLatLngInputfalse,
    • maxResults1,
    • thumbMapsfalse
    },
  • info:
    {
    }
}

Hiç yorum yok:

Yorum Gönder