Giter Site home page Giter Site logo

maps's Introduction

Maps

Early works on a generic map application for Gnome or Ubuntu. Gnome has an application like this in it's pipeline, in early design phase. I just wanted to see how far I could get on my own. And then I saw this Ubuntu application showdown a bit late.

This application uses Mapquest for search and directions search, the open API using Openstreetmap data. Maps are standard tiles from Openstreetmap. I'm a mapper myself, and I think there is room for an application like this.

It will also show GPX tracks if you drag them to the Ubuntu launcher or to an open program.

When viewing results, in most cases a single click in the result listing will highlight the result. For searches, a double click will save the location to 'My places'. During directions search, a double click in the results will set proper locations to be able to search for directions.

This is only a start… localization, icons, save 'my places' and drag and drop from 'my places' to direction search fields, are planned.

Run from source

Run it with quickly run from the project folder, having quickly installed. I will fix a runnable main without quickly pretty soon.

Install Ubuntu PPA package

https://launchpad.net/~sigurdga/+archive/maps

APIs used

Contributions

Contributions are very welcome.

maps's People

Contributors

ibraheem5000 avatar sigurdga avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

ibraheem5000

maps's Issues

Segfaults when started remotely via SSH

This bug has been originally reported to the Debian BTS, the reporter said the following:

Dear Maintainer,

openstreetmap-client segfaults when started remotely via ssh:

abe@local $ ssh -Y remote
abe@remote $ openstreetmap-client

(openstreetmap-client:1999): Clutter-CRITICAL **: Unable to initialize Clutter: Unable to find suitable fbconfig for the GLX context: Failed to find any comatible fbconfigs
[1] 1999 segmentation fault openstreetmap-client
abe@remote $

I could reproduce this with Sid amd64 as well as Sid i386 on the remote
side. At least on Sid i386 it though works fine locally. (Can't test on
amd64 as that box is a virtual machine only accessible via SSH. :-)

Even if the program should not be suitable for remote usage (I'd only
expect some HW-related stuff to have such restrictions), it should not
segfault, but give an according error message instead.*

You may find the original report here:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=688743

Cheers.

Nothing happens when Application - Open track is clicked, but an error

Hi there,

forwarding here a bug report I got through Debian's BTS:

Package: openstreetmap-client
Version: 12.07.4~ds0-1
Severity: normal
Tags: upstream

Dear Maintainer,

When clicking Application - Open track, nothing happens, but the following
error is printed on the console:

Traceback (most recent call last):
File "/usr/share/openstreetmap-client/maps/map_application.py", line 141,
in on_open
self.window.on_import_clicked(action, parameter)
TypeError: on_import_clicked() takes exactly 2 arguments (3 given)

-- System Information:
Debian Release: jessie/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.9-1-amd64 (SMP w/8 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/bash

Versions of packages openstreetmap-client depends on:
ii dconf-gsettings-backend [gsettings-backend] 0.16.0-4
ii gir1.2-champlain-0.12 0.12.3-2
ii gir1.2-clutter-1.0 1.10.8-2
ii gir1.2-gdkpixbuf-2.0 2.28.2-1
ii gir1.2-glib-2.0 1.36.0-2+b1
ii gir1.2-gtk-3.0 3.8.2-2
ii gir1.2-gtkchamplain-0.12 0.12.3-2
ii gir1.2-gtkclutter-1.0 1.2.0-2
ii python 2.7.5-2
ii python-lxml 3.2.0-1

It should be something pretty easy to solve, unfortunately I don't have so much time to provide you a patch shortly.

Caching of tiles

Marco Braida suggests to have a cache of tilesets, and that is a really good suggestion. There are probably a bunch of other things to do first, to make this a mature application, but I would like to see it as well.

"Directions" don't have a scroolbar

You can't see all directions because there aren't a scroolbar

I attach an example:

Screenshot

$: apt-cache policy maps
maps:
Installato: 12.07.4
Candidato: 12.07.4
Tabella versione:
*** 12.07.4 0
100 /var/lib/dpkg/status

project status

Please give informations about the current project status. The last commit was 2014 and there are heavy bugs.

We need this information to decide about if it can stay in Debian or not.

Different tracks should be shown in different colors

If I load two GPX tracks for displaying on the same map, they're both shown as red lines on the map without a chance to distinguish them unless you know where which track goes along.

It would be nice if each track would be shown in a different color (or if colors would be assignable to tracks separately).

--verbose doesn't work

Using openstreetmap-client 14.03.1 on Siduction GNU/LInux (Debian GNU/Linux unstable).

-h shows me

Usage: openstreetmap-client [options]

Options:
  --version      show program's version number and exit
  -h, --help     show this help message and exit
  -v, --verbose  Show debug messages (-vv debugs maps_lib also)

But -v and --verbose are not accepted. unknown option.

four PyGIWarning on start up

Using openstreetmap-client 14.03.1 on Siduction GNU/LInux (Debian GNU/Linux unstable).

Starting it on commandline give this warnings.

/usr/share/openstreetmap-client/maps/map_application.py:17: PyGIWarning: Gtk was imported without specifying a version first. Use gi.require_version('Gtk', '3.0') before import to ensure that the right version gets loaded.
  from gi.repository import Gtk, Gio, GtkClutter, Clutter
/usr/share/openstreetmap-client/maps/map_application.py:17: PyGIWarning: GtkClutter was imported without specifying a version first. Use gi.require_version('GtkClutter', '1.0') before import to ensure that the right version gets loaded.
  from gi.repository import Gtk, Gio, GtkClutter, Clutter
/usr/share/openstreetmap-client/maps/map_application.py:19: PyGIWarning: Champlain was imported without specifying a version first. Use gi.require_version('Champlain', '0.12') before import to ensure that the right version gets loaded.
  from gi.repository import Champlain, GtkChamplain
/usr/share/openstreetmap-client/maps/map_application.py:19: PyGIWarning: GtkChamplain was imported without specifying a version first. Use gi.require_version('GtkChamplain', '0.12') before import to ensure that the right version gets loaded.
  from gi.repository import Champlain, GtkChamplain

HTTP 403 when searching

Using openstreetmap-client 14.03.1 on Siduction GNU/LInux (Debian GNU/Linux unstable).

When I search something I got this output on the commandline

Traceback (most recent call last):
  File "/usr/share/openstreetmap-client/maps/map_window.py", line 467, in on_search_clicked
    searcher.search(text)
  File "/usr/share/openstreetmap-client/maps/searcher.py", line 163, in search
    response = urllib2.urlopen(req).read()
  File "/usr/lib/python2.7/urllib2.py", line 154, in urlopen
    return opener.open(url, data, timeout)
  File "/usr/lib/python2.7/urllib2.py", line 435, in open
    response = meth(req, response)
  File "/usr/lib/python2.7/urllib2.py", line 548, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/lib/python2.7/urllib2.py", line 473, in error
    return self._call_chain(*args)
  File "/usr/lib/python2.7/urllib2.py", line 407, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.7/urllib2.py", line 556, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
urllib2.HTTPError: HTTP Error 403: Forbidden

Dependency error on Ubuntu 12.04

Marco Braida has found a dependency problem when running on 12.04, which happens to be the same version as I'm using myself. I will need to look into it, but

sudo apt-get install python-rsvg librsvg2-2

worked for him.

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.