melihkorkmaz / il-ilce-mahalle-geolocation-rest-api Goto Github PK
View Code? Open in Web Editor NEWTürkiye için il ilçe semt veritabanı. Bölgesel bilgiler
License: MIT License
Türkiye için il ilçe semt veritabanı. Bölgesel bilgiler
License: MIT License
Bu request doğru:
https://il-ilce-rest-api.herokuapp.com/v1/towns/10dd43dbbbe3e3a4ea83b9a5a05b7383/districts?fields=name,id,geolocation
towns yerine districts diyince:
https://il-ilce-rest-api.herokuapp.com/v1/districts/10dd43dbbbe3e3a4ea83b9a5a05b7383/
{"status":true} dönüyor.
FYI.
axios veya fetch api ile "https://il-ilce-rest-api.herokuapp.com/v1/cities" adresinden veri almaya çalıştığımda aşağıdaki hatayı alıyorum.
Access to fetch at 'https://il-ilce-rest-api.herokuapp.com/v1/cities' from origin 'http://127.0.0.1:8080' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
hocam merhaba uygulama üzerinden servise erişilemiyor cors yüzünden hata mesajı tam olarak bu:
Çapraz köken isteği engellendi: Aynı Köken İlkesi, https://il-ilce-rest-api.herokuapp.com/v1/cities üzerindeki uzak kaynağın okunmasına izin vermiyor. (Sebep: CORS üstbilgisi 'Access-Control-Allow-Origin' eksik.)
Merhaba api çalışmıyor acaba ilgilenme şansınız varmı ?
Merhaba Melih hocam
Çok teşekkür ederiz böyle bir kaynak oluşturduğunuz için.
Bilgilerin MongoDB ye yüklenmesi ile ilgili yardım önerinizi bekliyorum.
Yardımcı olursanız çok sevinirim
Saygılarımla
İl (City)
İlçe (Town)
Semt (District)
Mahalle (Neighborhood)
Konum Bilgisi (Geolocation)
Poligonlar
Hocam oncelikle elinize saglik bizim icin onemli bir proje yaptiginiz icin.
Verdiginiz servis adresi: https://il-ilce-rest-api.herokuapp.com/v1
baglanamiyor.Bu islerde yeniyim.Projeme bu api kaynagini eklemem icin tek bildigim yol servis adresinden almak oneriniz varsa alabilirim.Tesekkurler
Servis mysql veritabanı ve vercel üzerinde çalışmaktadır
kaynak kodu ve servis linki burada;
https://github.com/ramdemi/TurkeyGeolocationRestApi
Şimdi çalışıyor
Üstadım servis çalışmıyor bir kontrol edebilirmisin. Böyle bir veri tabanına ihtiyacım var yardımcı olursan sevinirim. il ilçe mahalle bilgilerinizin konum bilgileri lazım.
Server'dan şu an hata yanıtı dönüyor, ilgilenirseniz sevinirim.
null dönüyor.
Diğer "town"lar var.
District ve Neighborhood için de polygon data yok anladığım kadarıyla.
Sizin için de uygunsa ben kendi projem için goole'dan alacağım, size de gönderebilirim.
geri kalan api için teşekkürler
iyi çalışmalar
Merhaba, servisinizi bugun kisisel hobi projemde kullanmak istedim ancak geolocation.boundinbox
verisi bulanik oldugu icin koordinatlardan emin olamadim. Su an asagidaki gibi bir veri donuyor:
"geolocation": {
"lat": "41.0734206",
"lon": "28.9015561330191",
"boundingbox": [
"41.0518916",
"41.0946066",
"28.874044",
"28.9390572"
]
}
bu verinin asagidaki gibi daha explicit anahtarlarla donmesi diger gelistiricilerin tahmin veya varsayimla ilerleme problemini ortadan kaldiracaktir:
"geolocation": {
"lat": "41.0734206",
"lon": "28.9015561330191",
"boundingbox": [
"south": "41.0518916",
"north": "41.0946066",
"east": "28.874044",
"west": "28.9390572"
]
}
Tesekkurler.
Selam,
Öncelikle, eline sağlık, çok emek harcamışsın.
Ekte göreceğin gibi verdiğin poligon datasına göre google.maps üzerinde poligon çizdirdim, Kayseri nedense eksik çıkıyor. Tahminimce o boşluğun da komple Kayseriye ait olması lazım.
Bu verileri nereden nasıl aldığını paylaşman mümkün mü ? Belki iyileştirmesine yardımcı olabilirim.
https://il-ilce-rest-api.herokuapp.com/v1/search/coordinates?lat=40.340134&lon=27.971170
bu sorgunun örneğe göre
[ { "_id":"ce941560c5a7ba9ff5cd24f5f9d75065", "name":"Bandırma", "city" : "Balıkesir" }, ... ]
döndürmesi gerekirken Postman ile denediğimde response
[]
dönüyor
merhaba elimde final notlarım var bunların erş şemasına dönüştürülmesi gerekiyor yardımcı olur musunuz.
http://geoapi.sanalonyedi.net/v1 çalışmıyor
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.