GithubHelp home page GithubHelp logo

sstadelman / 062_path Goto Github PK

View Code? Open in Web Editor NEW

This project forked from scientificdimension/062_path

0.0 1.0 0.0 6.45 MB

Test task, which includes: JSON parsing, search for a minimum route between two points, draw the route on the map

Swift 100.00%

062_path's Introduction

Test task, which includes: JSON parsing, search for a minimum route between two points, draw the route on the map

================================

Data

In the attachment JSON (a1s.rtf) and JPG-picture (image001.jpg). JSON provides a graph of roads and other information. The JPG picture is used as the background image of the map. (There are no limitations on supported versions of ios: it is desirable to use swift as the programming language.)

The essence of the problem:

We need to develop a demo application and send us the source of the finished project. A map (JPG picture in the attachment) should be displayed on the screen.

  • When tapping on the map, the starting point of the route is selected.
  • At the second tap, the final point on the map is selected, and the shortest route from the initial to the final point is laid.
  • The next tap resets the selected points and route.

Supported Platforms

  • iOS

Screenshots

output

Directed graph

Directed graph was used

img_002

It means you can get from the vertex A to the vertex B, but you can not get back in the same way

Alerts

When working with app you can get 4 type of alerts:

The route can not be built from start point.

img_003

The route can not be built to end point.

img_001

The start and end points of the route are the same: select another end point.

The start and end points of the route are not linked: select another end point.

062_path's People

Contributors

scientificdimension avatar

Watchers

James Cloos avatar

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.