Skip to content

michal55/city_map

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 

Repository files navigation

CityMap

Semestral project for my Advanced Database Technologies course @ FIIT STU 2016

Assignment

Build a map-based application, which lets the user see geo-based data on a map and filter/search through it in a meaningfull way. Specify the details and build it in your language of choice. The application should have 3 components:

  1. Custom-styled background map, ideally built with mapbox. Hard-core mode: you can also serve the map tiles yourself using mapnik or similar tool.
  2. Local server with PostGIS and an API layer that exposes data in a geojson format.
  3. The user-facing application (web, android, ios, your choice..) which calls the API and lets the user see and navigate in the map and shows the geodata. You can (and should) use existing components, such as the Mapbox SDK, or Leaflet.

Use cases

1. Find all locations of selected type (hospital, restaurant) in a selected radius. Center of the radius is a draggable marker.

All restaurant within 1000 meters from my marker. We can highlight the radius with the Radius On/Off button. The color of the markers is set to orange (EEAA00) and the Maki icon is determined by the amenity. Clicking on a marker shows the amenity's name.

2. Find all residential streets which are within a certian distance from at least X selected amenities (from previous UC).

All residential streets within 100 meters from at least 2 restaurants (that are within 1000 meters from my marker)

3. Find an amenity by name.

All points and polygons with the name attribute = 'Aupark' (blue) and 'Eurovea' (green).

Data

Technologies

  • Ruby on Rails
  • Mapbox
  • PostgreSQL
  • PostGIS

API

  get 'map/within/:type/:within/:coordinates/:color' => 'map#within'

  get 'map/within/polygon/:id' => 'map#polygon'

  get 'map/streets_within/:type/:within/:coordinates/:color/:streets_within/:number_of' => 'map#streets_within'

  get 'map/find/:name/:color' => 'map#find'

About

Simple Mapbox app in Rails

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published