<!DOCTYPE html>
<html>

  <head>
    <link data-require="ionic@1.0.0-rc.1" data-semver="1.0.0-rc.1" rel="stylesheet" href="http://code.ionicframework.com/1.0.0-rc.1/css/ionic.css" />
    <script data-require="ionic@1.0.0-rc.1" data-semver="1.0.0-rc.1" src="http://code.ionicframework.com/1.0.0-rc.1/js/ionic.bundle.js"></script>
    <script data-require="angular.js@1.4.0-beta.6" data-semver="1.4.0-beta.6" src="https://code.angularjs.org/1.4.0-beta.6/angular.js"></script>
    <script data-require="angular-animate@>=1.3.0" data-semver="1.4.0-beta.6" src="https://code.angularjs.org/1.4.0-beta.6/angular-animate.js"></script>
    <script data-require="ui-router@*" data-semver="0.2.13" src="//rawgit.com/angular-ui/ui-router/0.2.13/release/angular-ui-router.js"></script>
    <link rel="stylesheet" href="style.css" />
    <script src="factory_restaurant.js"></script>
    <script src="controller.js"></script>
    <!--<script src="GreatCircle.js"></script>-->
  </head>

  <body ng-app="wmapp">
    <h1>Hello Plunker!</h1>
      <div data-ng-controller="restaurantlistController">
        <div  ng-repeat="restaurant in restaurantList " href="#">
        <article class="item_frame">
          <div class="marker_left_container">
            <img class="venue_rest_marker" ng-src="{{restaurant.icon}}" />
            <span class="venu_type_text">{{restaurant.venueType}}</span>
            <span class="distance_from_user_rest">0.7 km</span>
            <span class="distance_from_user_rest2">from current location</span>
          </div>
          <div class="restaurant_details_container">
            <h1 class="restaurant_name_inlist">{{restaurant.Name}}</h1>
            <span class="restaurant_detail_inlist2">{{restaurant.subCuisine}}                            <br />

 {{restaurant.subsubCuisine}}</span>
            <span class="restaurant_address">{{restaurant.address}},                             <br />
            </span>
            <span class="restaurant_address">{{restaurant.cp}}, {{restaurant.city}}                             <br />
              <br />
            </span>
            <span class="restaurant_others">{{restaurant.phoneNumber}}                            <br />
            </span>
            <span class="restaurant_others">{{restaurant.website}}                            <br />
              <br />
            </span>
          </div>
        </article>
        <!--main article frame 1 -->
      </div>
      </div>
  </body>

</html>
/* Styles go here */

// This is were all restaurants data sits usedin restaurantList.html. Only for France.
// eventually this will come from API/webservices

angular.module('wmapp.factory_restaurants', [])

    .factory('restaurantsFactory', function () {
        "use strict";
        var factory = {
		        Restaurants : [
                    {Name: 'A La Biche Au Bois', venueType: 'Restaurant ',  subCuisine: 'Italian',  subsubCuisine: 'Classic/traditional', address: '45 Avenue Ledru-Rollin', cp: '75012', city: 'Paris', country: 'France', countryCode: 'FR', itemid: 'PARIREST002', phoneNumber: '+331 43 43 34 38', website: '', lat: 48.8482040, long: 2.3706140, icon: 'img/restaurant_pointer_WMcustom_40x49_v3.png'},
                    {Name: 'Allard   ', venueType: 'Restaurant ',  subCuisine: 'French',  subsubCuisine: 'Classic/traditional', address: '41, rue Saint-André des Arts', cp: '75006', city: 'Paris', country: 'France', countryCode: 'FR', itemid: 'PARIREST004', phoneNumber: '+33158002342', website: 'http://www.restaurant-allard.fr/en', lat: 48.8532490, long: 2.3409810, icon: 'img/restaurant_pointer_WMcustom_40x49_v3.png'},
                    {Name: 'Ambassade d\'Auvergne', venueType: 'Restaurant ',  subCuisine: 'French',  subsubCuisine: 'Auvergne region', address: '22 Rue du Grenier Saint-Lazare', cp: '75003', city: 'Paris', country: 'France', countryCode: 'FR', itemid: 'PARIREST005', phoneNumber: '+331 42 72 31 22', website: 'http://www.ambassade-auvergne.com/', lat: 48.8631310, long: 2.3534140, icon: 'img/restaurant_pointer_WMcustom_40x49_v3.png'},
                    {Name: 'Atelier Aubrac', venueType: 'Restaurant ',  subCuisine: 'French',  subsubCuisine: 'Auvergne region', address: '51 Boulevard Garibaldi', cp: '75015', city: 'Paris', country: 'France', countryCode: 'FR', itemid: 'PARIREST006', phoneNumber: '+331 45 66 96 78', website: 'http://www.atelieraubrac.com/', lat: 48.8463560, long: 2.3078280, icon: 'img/restaurant_pointer_WMcustom_40x49_v3.png'},
                    {Name: 'Au Bascou', venueType: 'Restaurant ',  subCuisine: 'French',  subsubCuisine: 'Basque ', address: '38 Rue Réaumur', cp: '75003', city: 'Paris', country: 'France', countryCode: 'FR', itemid: 'PARIREST007', phoneNumber: '+331 42 72 69 25', website: 'http://www.au-bascou.fr/en/index.php', lat: 48.8653980, long: 2.3573950, icon: 'img/restaurant_pointer_WMcustom_40x49_v3.png'},
                    {Name: 'Au Boeuf Couronné', venueType: 'Restaurant ',  subCuisine: 'French',  subsubCuisine: 'Classic/traditional', address: '188 Avenue Jean Jaurès', cp: '75019', city: 'Paris', country: 'France', countryCode: 'FR', itemid: 'PARIREST008', phoneNumber: '+331 42 39 44 44', website: 'http://www.boeuf-couronne.com/en/', lat: 48.8879590, long: 2.3910170, icon: 'img/restaurant_pointer_WMcustom_40x49_v3.png'},
                    {Name: 'Au bon coin', venueType: 'Restaurant ',  subCuisine: 'French',  subsubCuisine: 'Classic/traditional', address: '21, rue de la Collegiale', cp: '75005', city: 'Paris', country: 'France', countryCode: 'FR', itemid: 'PARIREST009', phoneNumber: '+33 1 43 31 55 57', website: 'http://www.auboncoin-bistrot.com/en', lat: 48.8381080, long: 2.3517440, icon: 'img/restaurant_pointer_WMcustom_40x49_v3.png'},
                    {Name: 'Au Bourguignon du Marais', venueType: 'Restaurant ',  subCuisine: 'French',  subsubCuisine: 'Classic/traditional', address: '52 Rue François Miron', cp: '75004', city: 'Paris', country: 'France', countryCode: 'FR', itemid: 'PARIREST010', phoneNumber: '+331 48 87 15 40', website: '', lat: 48.8550680, long: 2.3573650, icon: 'img/restaurant_pointer_WMcustom_40x49_v3.png'},
                    {Name: 'Au coin pasteur - le pot au feu', venueType: 'Restaurant ',  subCuisine: 'French',  subsubCuisine: 'Classic/traditional', address: '59 Boulevard Pasteur', cp: '75015', city: 'Paris', country: 'France', countryCode: 'FR', itemid: 'PARIREST011', phoneNumber: '+331 43 20 79 80', website: 'http://au-coin-pasteur.bypf.mobi/', lat: 48.8414940, long: 2.3145400, icon: 'img/restaurant_pointer_WMcustom_40x49_v3.png'},
                     {Name: 'Gérard Mulot', venueType: 'Pastry shop',  subCuisine: 'French',  subsubCuisine: '', address: '76 Rue de Seine', cp: '75006', city: 'Paris', country: 'France', countryCode: 'FR', itemid: 'PARIREST248', phoneNumber: '+331 43 26 85 77', website: '', lat: 48.8517980, long: 2.3369690, icon: 'img/restaurantBIS_pointer_WMcustom_40x49_v3.png'},
                    {Name: 'Le Grenier à Pain -  Faubourg Poissonnière', venueType: 'Bakery',  subCuisine: 'French',  subsubCuisine: '', address: '91, rue Faubourg Poissonnière', cp: '75010', city: 'Paris', country: 'France', countryCode: 'FR', itemid: 'PARIREST341', phoneNumber: '', website: 'http://www.legrenierapain.com/fr/paris', lat: 48.8772140, long: 2.3489750, icon: 'img/restaurantBIS_pointer_WMcustom_40x49_v3.png'},
                    {Name: 'Le Grenier à Pain - av d\'Italie', venueType: 'Bakery',  subCuisine: 'French',  subsubCuisine: '', address: '52 Avenue d\'Italie', cp: '75013', city: 'Paris', country: 'France', countryCode: 'FR', itemid: 'PARIREST342', phoneNumber: '', website: 'http://www.legrenierapain.com/fr/paris', lat: 48.8276580, long: 2.3562030, icon: 'img/restaurantBIS_pointer_WMcustom_40x49_v3.png'},
                    {Name: 'Le Grenier à Pain - Saint Amand', venueType: 'Bakery',  subCuisine: 'French',  subsubCuisine: '', address: '33B Rue Saint-Amand', cp: '75015', city: 'Paris', country: 'France', countryCode: 'FR', itemid: 'PARIREST343', phoneNumber: '', website: 'http://www.legrenierapain.com/fr/paris', lat: 48.8341290, long: 2.3089710, icon: 'img/restaurantBIS_pointer_WMcustom_40x49_v3.png'},
                     {Name: 'Pierre Hermé - Paul Doumer', venueType: 'Chocolate shop',  subCuisine: 'French',  subsubCuisine: '', address: '58 avenue Paul Doumer', cp: '75016', city: 'Paris', country: 'France', countryCode: 'FR', itemid: 'PARIREST425', phoneNumber: '', website: 'http://www.pierreherme.com/products.html', lat: 48.8602280, long: 2.2802000, icon: 'img/restaurantBIS_pointer_WMcustom_40x49_v3.png'},
 {Name: 'L\'Atelier de l\'Éclair', venueType: 'Pastry shop',  subCuisine: 'French',  subsubCuisine: '', address: '16 Rue Bachaumont', cp: '75002', city: 'Paris', country: 'France', countryCode: 'FR', itemid: 'PARIREST426', phoneNumber: '', website: 'http://www.latelierdeleclair.fr/', lat: 48.8662680, long: 2.3452460, icon: 'img/restaurantBIS_pointer_WMcustom_40x49_v3.png'},
                         {Name: 'Au Verger de la Madeleine', venueType: 'Wine Shop',  subCuisine: 'French',  subsubCuisine: '', address: '4 Boulevard Malesherbes', cp: '75008', city: 'Paris', country: 'France', countryCode: 'FR', itemid: 'PARIREST531', phoneNumber: '', website: '', lat: 48.8704390, long: 2.3231160, icon: 'img/restaurantBIS_pointer_WMcustom_40x49_v3.png'},
 {Name: 'Le Verre Volé  - Lancry', venueType: 'Wine Shop',  subCuisine: 'French',  subsubCuisine: '', address: '67 rue de Lancry', cp: '75010', city: 'Paris', country: 'France', countryCode: 'FR', itemid: 'PARIREST532', phoneNumber: '', website: 'http://leverrevole.fr/', lat: 48.8728370, long: 2.3634330, icon: 'img/restaurantBIS_pointer_WMcustom_40x49_v3.png'},
                         {Name: 'Les Fondus de la Raclette "Montparnasse"', venueType: 'Restaurant ',  subCuisine: 'French',  subsubCuisine: 'Alps', address: '209 Boulevard Raspail', cp: '75014', city: 'Paris', country: 'France', countryCode: 'FR', itemid: 'PARIREST214', phoneNumber: '+331 43 27 00 13', website: 'http://restaurant-lesfondusdelaraclette-paris.com/le-restaurant/', lat: 48.8411030, long: 2.3303300, icon: 'img/restaurant_pointer_WMcustom_40x49_v3.png'},
                     {Name: 'Les Mauvais Garçons', venueType: 'Restaurant ',  subCuisine: 'French',  subsubCuisine: 'Lyon region', address: '4 Rue des Mauvais Garçons', cp: '74004', city: 'Paris', country: 'France', countryCode: 'FR', itemid: 'PARIREST216', phoneNumber: '+33 1 42 72 74 97', website: 'http://lesmauvaisgarconsparis.com/', lat: 48.8567670, long: 2.3550820, icon: 'img/restaurant_pointer_WMcustom_40x49_v3.png'},
                     {Name: 'Paris Breizh', venueType: 'Restaurant ',  subCuisine: 'French',  subsubCuisine: 'Crêperie', address: '177 Avenue Daumesnil', cp: '75012', city: 'Paris', country: 'France', countryCode: 'FR', itemid: 'PARIREST225', phoneNumber: '+331 43 45 16 10', website: 'http://www.creperieparisbreizh.fr/', lat: 48.8605190, long: 2.3543840, icon: 'img/restaurant_pointer_WMcustom_40x49_v3.png'},
                    {Name: 'La cuisine - Royal Monceau Raffles Hotel', venueType: 'Restaurant ',  subCuisine: 'French',  subsubCuisine: 'Haute cuisine', address: '37, avenue Hoche ', cp: '75008', city: 'Paris', country: 'France', countryCode: 'FR', itemid: 'PARIREST236', phoneNumber: '+330 42998800', website: 'http://www.leroyalmonceau.com/restaurants-bar/la-cuisine/', lat: 48.8758260, long: 2.3004070, icon: 'img/restaurant_pointer_WMcustom_40x49_v3.png'},
                     {Name: 'Sud Ouest et Compagnie', venueType: 'Restaurant ',  subCuisine: 'French',  subsubCuisine: 'South-West', address: '39 Boulevard du Montparnasse', cp: '75006', city: 'Paris', country: 'France', countryCode: 'FR', itemid: 'PARIREST238', phoneNumber: '+33142843535', website: 'http://www.sudouestetcie.com/', lat: 48.8449550, long: 2.3213820, icon: 'img/restaurant_pointer_WMcustom_40x49_v3.png'},
                     {Name: 'Ty Breiz', venueType: 'Restaurant ',  subCuisine: 'French',  subsubCuisine: 'Crêperie', address: '52 Boulevard de Vaugirard', cp: '75015', city: 'Paris', country: 'France', countryCode: 'FR', itemid: 'PARIREST243', phoneNumber: '+331 43 20 83 72', website: 'http://tybreizcreperieparis.fr/', lat: 48.8406800, long: 2.3153900, icon: 'img/restaurant_pointer_WMcustom_40x49_v3.png'},
                     {Name: 'La Chambre aux Confitures', venueType: 'Gourmet grocery shop',  subCuisine: 'French',  subsubCuisine: '', address: ' 9 Rue des Martyrs', cp: '75009', city: 'Paris', country: 'France', countryCode: 'FR', itemid: 'PARIREST629', phoneNumber: '', website: 'http://lachambreauxconfitures.com/', lat: 48.8774570, long: 2.3393960, icon: 'img/restaurantBIS_pointer_WMcustom_40x49_v3.png'},
                    {Name: 'Goumanyat by Thiercelin', venueType: 'Gourmet grocery shop',  subCuisine: 'French',  subsubCuisine: '', address: '3 Rue Charles-François Dupuis,', cp: '75003', city: 'Paris', country: 'France', countryCode: 'FR', itemid: 'PARIREST630', phoneNumber: '', website: 'http://www.thiercelin1809.com/', lat: 48.8651900, long: 2.3629950, icon: 'img/restaurantBIS_pointer_WMcustom_40x49_v3.png'},
                    {Name: 'Oliviers & Co - 3eme', venueType: 'Gourmet grocery shop',  subCuisine: 'French',  subsubCuisine: '', address: '60, rue Vieille du Temple', cp: '75003', city: 'Paris', country: 'France', countryCode: 'FR', itemid: 'PARIREST631', phoneNumber: '', website: 'http://www.oliviers-co.com/en/', lat: 48.8590110, long: 2.3593340, icon: 'img/restaurantBIS_pointer_WMcustom_40x49_v3.png'},
                     {Name: 'Mora', venueType: 'Kitchen and tableware',  subCuisine: 'French',  subsubCuisine: '', address: '13 Rue Montmartre', cp: '75001', city: 'Paris', country: 'France', countryCode: 'FR', itemid: 'PARIREST693', phoneNumber: '', website: 'http://www.mora.fr/', lat: 48.8643010, long: 2.3451130, icon: 'img/restaurantBIS_pointer_WMcustom_40x49_v3.png'},
                    {Name: 'A.Simon', venueType: 'Kitchen and tableware',  subCuisine: 'French',  subsubCuisine: '', address: '48 Rue Montmartre', cp: '75002', city: 'Paris', country: 'France', countryCode: 'FR', itemid: 'PARIREST694', phoneNumber: '', website: '', lat: 48.8651910, long: 2.3450550, icon: 'img/restaurantBIS_pointer_WMcustom_40x49_v3.png'},
                     {Name: 'Fromagerie Damrémont - Chez Virginie', venueType: 'Cheese shop',  subCuisine: 'French',  subsubCuisine: '', address: '54 Rue Damrémont', cp: '75018', city: 'Paris', country: 'France', countryCode: 'FR', itemid: 'PARIREST740', phoneNumber: '', website: 'http://www.chezvirginie.com/en/', lat: 48.8904260, long: 2.3343070, icon: 'img/restaurantBIS_pointer_WMcustom_40x49_v3.png'},
                    {Name: 'Fromagerie Hardouin Cyrille  ', venueType: 'Cheese shop',  subCuisine: 'French',  subsubCuisine: '', address: '6 Place Aligre', cp: '75012', city: 'Paris', country: 'France', countryCode: 'FR', itemid: 'PARIREST741', phoneNumber: '', website: 'http://www.fromagerie-hardouin-paris.fr/', lat: 48.8486810, long: 2.3778810, icon: 'img/restaurantBIS_pointer_WMcustom_40x49_v3.png'},
                     {Name: 'Au Petit Sud Ouest', venueType: 'Restaurant ',  subCuisine: 'French',  subsubCuisine: 'South-West', address: '46, Avenue de la Bourdonnais', cp: '75007 ', city: 'Paris', country: 'France', countryCode: 'FR', itemid: 'PARIREST013', phoneNumber: '+33145555959', website: 'http://www.au-petit-sud-ouest.fr/', lat: 48.8568530, long: 2.3008370, icon: 'img/restaurant_pointer_WMcustom_40x49_v3.png'},
   
                    
                    
			
		        ],
		        getRestaurants : function () {
			        return factory.Restaurants;
		        },
	        };
	    return factory;
    
    });





var wmapp = angular.module('wmapp' ,['wmapp.factory_restaurants'])

  // RESTAURANTLIST CONTROLLER
    .controller('restaurantlistController', function ($scope, $rootScope, restaurantsFactory) {
        "use strict";
	    $scope.restaurantList = restaurantsFactory.getRestaurants(); //call to restaurantfactory
    })