[英]GoogleCode Store Locator
I am trying to build a search feature for my website.我正在尝试为我的网站构建搜索功能。 I have some address of dealers (lat,lng,descr fields) and upon searching for a location.我有一些经销商的地址(纬度、经度、描述字段)并在搜索位置时。 I want to show on map, all dealers close around 10-15 miles range.我想在地图上显示,所有经销商都在 10-15 英里范围内。 I found this googlecode storelocator.我找到了这个 googlecode storelocator。 However, after looking for weeks I could not find a single example of fetching data from mysql tables.但是,在寻找了数周之后,我找不到从 mysql 表中获取数据的单个示例。 http://storelocator.googlecode.com/git/reference.html#storeLocator.DataFeed http://storelocator.googlecode.com/git/reference.html#storeLocator.DataFeed
I am trying to implement this in laravel 5 using eloquent and views.我正在尝试使用 eloquent 和视图在 laravel 5 中实现这一点。 Any guidance or example would be wonderful.任何指导或例子都会很棒。
I am a newbie so a detailed answer would be highly appreciated.我是新手,因此非常感谢详细的答案。 :) :)
Make sure your connections are set up in config/database.php
and you can follow the ORM page on the Laravel 5 site to get going: http://laravel.com/docs/5.0/eloquent确保您的连接在config/database.php
中设置,您可以按照 Laravel 5 站点上的 ORM 页面开始操作: http ://laravel.com/docs/5.0/eloquent
After that, start a new question for specific help.之后,开始一个新问题以获得特定帮助。 But this is a pretty broad question as it stands.但就目前而言,这是一个相当广泛的问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.