Giter Club home page Giter Club logo

flexmap's Introduction

flex-map

エレベーターピッチ

現状、Google mapが提供しているルート検索は、バス・電車、車・タクシー、徒歩のみとなっている。

しかしながら、近年電動キックボードのレンタルサービスや、自転車、車のシェアリングサービスが台頭し、移動手段の多様化が進んでいる。

そのため、今後のルート検索アプリケーションには、これらの多様性に対するスケーラビリティが求められている。

我々はこの課題を解決するために、複雑化する選択肢に柔軟に対応できるプラットフォームを作成する。

最初にすること

  • git clone ~
  • ルートディレクトリでdocker-compose buildを実行してイメージを作成する。

毎回すること

  • ルートディレクトリでdocker-compose up (バックグランドで実行する場合は '-d'を付ける。)を実行してコンテナを起動する。
    • app
      • manage.pyが実行され、Djangoサーバーが立ち上がる。
      • コンテナが起動しているOSのIPアドレス:8000でサービスにアクセスできる。 【例】
        localhost:8000/
        

googleMapsAPI叩くと

  • リクエスト
https://maps.googleapis.com/maps/api/directions/json?origin=東京駅&destination=つくばセンター&mode=DRIVING&key=APIKEY
  • return
{
  geocoded_waypoints: [
    routes: [
      {
        legs: [
          {
            distance: {
              text: "62.4km"
              value 62.4
            },
            duration: {
              text: "1 hour 4 mins"
              value 3834
            },
            end_address,
            end_location: {
              lat,
              lng
            },
            start_address,
            start_location: {
              lat,
              lng
            },
            steps: [
              {
                {
                  どこからどこまで行って,どの方向に曲がって,何分かかるかみたいな情報が入子になっている
                }
              },
              {
                  どこからどこまで行って,どの方向に曲がって,何分かかるかみたいな情報が入子になっている
              }
            ]
          }
        ]
      }
    ]
  ]
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.