Google maps Geolocation Codeigniter Full Script
HTML-код
- Опубликовано: 10 сен 2024
- What You Will Learn In This Tutorial ?
-Find Your Location with Geolocation API
-Integrate Geolocation with Google Map To Display Your Location On Google Map
-Store get coordinates from google maps in database mysql
-Find Nearest Locations to Your Location With Mysql
-Display locations dynamically with google markers
-draw circle around all markers
-Use info window dynamically to display users information
-Pick up latitude and longitude from markers and geolocation to input form or ajax request
- integrate all these features with codeigniter
- See more at: webeasystep.com...
geolocation google maps
google geolocation api example
how to use google map api in php
geolocation ip
html5 geolocation api
how to know longitude and latitude in google maps
get current location google maps api
get current location google maps javascript
geolocation address
geolocation meaning
google geolocation api ip address
google map in php
using php/mysql with google maps
creating a store locator with php, mysql & google maps
google map in php demo
google maps php mysql demo
google map php mysql store locator
google map api php example code
google map with php mysql
google maps multiple markers php mysql
how to show multiple locations on google maps using php
google map source code php
Hi and thank you for the video . In my mymaps Is it possible to have pins automatically open to display their info when i enter their pre-defined radius? Foe example , a user is in my custom mymaps while travelling on a bus , as he passes through each radius the pin info of each pin iassisgned to each particualr radius opens automactically to reveal its info ? Thank u
Thanks man I´ll try to adapt something to my situation!!! Good job!!!
Hello Sir, great tutorial..
i would like to know how you are saving lat and lan in database using codeigniter..
this error appears ........
An error has occurred.
This page has not loaded Google Maps correctly. Discover the technical details of the problem in the JavaScript console.
how can I solve that..?
Leandro Poma can you explain what error appears in the console
Asslamoalikum brother if do not want to do that code in code igniter framework just in simple php then what i have to do. kindly give me instructions
وعليكم السلام ورحمه الله اخي كريم ، يمكنك تحميل الكود بالكامل من الوصف
Message: Class 'CI_Google_maps' not found
this error comming what to do
i have a issue with bootstrap is not loading it is taking my interest but not showing me market and a good layout.
it is because of your $config['base_url'] in the config file, please change it to your project name and it will work good
i changed the directory name in base config thankyou you replied
Gracias!!! desde Chile te mando un gran saludo!!!
how do you set this folders and load in linux Ubuntu because its indicating for me that Your system folder path does not appear to be set correctly. Please open the following file and correct this: index.php
sorry i have no experience with linux
im getting this >> ReferenceError: google is not defined
could you help plz
why we need to Find Nearest Locations to our Location With Mysql ?
in situations like searching for the nearest service providers
hi sir, can i ask you a question about google nearest marker map? ive been try this, but in my computer the marker and the nearest location cannot appear, please help me sir, thank you
Yes, this is true because you should update the table by nearest latitudes and longitudes to your current location; I tested it in the video after adding some nearest latitudes and longitudes to my current location, so to fix this
1- Get your current latitude and longitude
2- Add some nearest latitudes and longitudes in the table
3- Test again, and it will works
a already added 1 location but it still not working sir, can you help me please
Hello there.. Great tutorial.. I need your help with a similar matter.. Is there anyway i can contact you? On any social media..
hello bro ,you can contact through my website or my facebook page
Deprecated: __autoload() is deprecated, use spl_autoload_register() instead in /opt/lampp/htdocs/map_ci_new/application/config/config.php on line 355 error when i just reach on 4:50
same with me
Hello. Use this code below, to solve that problem:
spl_autoload_register(function($class) {
if (file_exists(APPPATH."core/".$class.'.php')) {
include_once(APPPATH."core/".$class.'.php');
}
});
@@marshallchaterera2069 thankyou, that's work
I'm totally lost. Please explain exactly what I can achieve by doing this. Thank you !
you can achieve the following
-Find Your Location with Geolocation API
-Integrate Geolocation with Google Map To Display Your Location On Google Map
-Store get coordinates from google maps in database mysql
-Find Nearest Locations to Your Location With Mysql
-Display locations dynamically with google markers
-draw circle around all markers
-Use info window display users information
-Pick up latitude and longitude from markers and geolocation to input form or ajax request
ايضا يوجد بعض النقص بالكود ci_sessions الجدول هذا فاضي مابه شي انا استخدم appserv يعني هل يوجد مشكلة لو ماني مستخدم xampp
اهلا يا اخي الكريم..يمكنك تحميله من هنا
bitbucket.org/webeasystep/codeigniter_paypal/src/07185c3e3df7a8fef59547fd160bfe3dd6548e46/application/tables/ci_sessions.sql?at=master&fileviewer=file-view-default
sir can u help me i ve this error Fatal error: Class 'Front_end' not found in C:\xampp\htdocs\codeigniter-nearest-markers-map\application\controllers\Services.php on line 6
insure that you have Front_End class in the core folder or replace line 6 with
class Services extends CI_Controller
sir thank you for the help but i have other problem if u can help me more sir
An uncaught Exception was encountered
Type: Error
Message: Call to undefined method Services::view()
Filename: C:\xampp\htdocs\codeigniter-nearest-markers-map\application\controllers\Services.php
Line Number: 28
Backtrace:
File: C:\xampp\htdocs\codeigniter-nearest-markers-map\application\controllers\Services.php
Line: 21
Function: book_service
File: C:\xampp\htdocs\codeigniter-nearest-markers-map\index.php
Line: 293
Function: require_once
change it to
copy the view file from the core/Front_end.php to your controller
sorry sir can u tell me more cause i still have the same problem
thx sir it s work thx for the help
ياتيني رسالة خطا او ان الكود ناقص Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in C:\AppServ\www\project\webeasystep-codeigniter-nearest-markers-map-7b9369e14c71\system\core\Log.php on line 176
هذي مشكلة تابعة لسيرفرك ياصديقي ومع ذلك يمكنك استخدام date.timezone وتفاصيلها من هنا
php.net/manual/en/class.datetimezone.php
السلام عليكم شكرا للشرح ..لو سمحت لو كنت عايز اضيف اكتر من مكان ف اكتر من دوله في نفس الوقت اعمل ايه
وعليكم السلام ورحمه الله ، معلش مفهمتش السؤال.. يعني ايه تضيف اكتر من مكان،قصدك تضيف اكتر من marker ؟
لو ده قصدك فالشرح ال في الفيديو بيعرفك ازاي تضيف اكتر من marker علي نفس الخريطة
اه اقصد اكثر من marker
مع العلم ان الداتا بتتغير كل فتره
(alt , long)
فهل اعرف اعمل كده
ف الاول شكرا للاهتمام والرد
هذا السؤال قد سألته من قبل وقمت بالرد عليه ..لذا سأنسخ لك ردي السابق لأعتقادي بتشابه الفكرة ولعله يفيدك..
الفكرة ببساطة يمكن تطبيقها من خلال طريقتين ...اما الأولي فهي غير عملية ولكن تصلح للتطبيقات البسيطة جدا جدا..وذلك ان تقوم بعمل جدول يقوم بتخزين id السيارة-خط الطول latitude- خط العرض longtuide وتربطه بسيرفس وليكن اسمها post_location - ويقوم الشخص القائد لسيارة الاسعاف بفتح ال Gps بشكل اجباري من محموله وهنا يقوم التطبيق بأخذ الموقع وارساله للسيرفس Post_location والتي بدورها تقوم بتخزينه في الداتا بيز..علي ان يتم ذلك بأمر في الخلفية thread داخل الموبايل يقوم بارسال الموقع كل فترة قصيرة وليكن 20 ثانية..ومن خلال الموقع يمكنك عمل خريطة بجوجل ماب وربطها ب AJAX عن طريق دالة جافا سكربت setInterval والتي تقوم بجلب احدث النتائج كل فترة 20 ثانية لتقوم بتحديث الخريطة.
شكراا جدا
a already added 1 location but it still not working sir, can you help me please
the location should be about 30 kilometer near from your location,for more info you should use console to debug the code ,open the chrome console see what happened and if you stick with an error copy and paste here
Ok sir thank you very much,i will try it ... :-)
this is the error sir :
Uncaught ReferenceError: google is not defined
at (index):99
bootstrap.min.js:7 Uncaught Error: Bootstrap tooltips require Tether (github.hubspot.com/tether/)
at bootstrap.min.js:7
at bootstrap.min.js:7
at bootstrap.min.js:7
jquery.js:8630 POST localhost/codeigniter-nearest-markers-map/services/closest_locations 500 (Internal Server Error)
your problem with 500 means you call a wrong path it till you that there is nothing with this name ,to fix this
change services/closest_locations to the correct controller and method
ok sir but from the first time i didnt change anything about the code , what i should do sir ?
Thank you, for very good.
حرام عليك تحكي انجليزي😂😅،
بس برضو كل الاحترام وممكن طريقة اظهار الاماكن القريبه يعني اوخذ الوكيشن تاع اليوزر و اجيبلو اقرب اماكن علي ( انا بعينها ) لبعد كيلومتر مثلا؟
لو سمحت ممكن تعطيني اي برنامج تواصل اجتماعي عشان عندي مشاكل كثيره بالكود
the bootsrapt is not loading up
it is because of your $config['base_url'] in the config file, please change it to your project name and it will work good
Thank You...
You are welcome dude :)
Make more videos on Google maps
thanks Nabeel for recommendation , i publish a new tutorial today about google maps alternative ,i hope you enjoy watching :)
This api is free or not?
If you mean Google maps, yes it is free but limited , you can use mab box as alternative,as a side note I have another serise for mapbox in this channel
@@Webeasystep api which is used in above video? Is free?
well so.