OSMBonusPack | party library of useful additional objects

 by   grote Java Version: Current License: No License

kandi X-RAY | OSMBonusPack Summary

kandi X-RAY | OSMBonusPack Summary

OSMBonusPack is a Java library. OSMBonusPack has build file available and it has low support. However OSMBonusPack has 7 bugs and it has 5 vulnerabilities. You can download it from GitHub.

A third-party library of (very) useful additional objects for [osmdroid] which is a library to interact with [OpenStreetMap] data inside an Android application. It offers an almost full/free replacement to Android map objects: MapView, MapController, Overlays, etc. IMPORTANT: Please note that this is only a copy of the official SVN repository to make it easier to include this library as a git submodule. Do not issue pull requests and go to [the official initiative] for up to date information and code.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              OSMBonusPack has a low active ecosystem.
              It has 17 star(s) with 16 fork(s). There are 9 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              OSMBonusPack has no issues reported. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of OSMBonusPack is current.

            kandi-Quality Quality

              OutlinedDot
              OSMBonusPack has 7 bugs (2 blocker, 0 critical, 3 major, 2 minor) and 450 code smells.

            kandi-Security Security

              OSMBonusPack has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              OutlinedDot
              OSMBonusPack code analysis shows 5 unresolved vulnerabilities (5 blocker, 0 critical, 0 major, 0 minor).
              There are 47 security hotspots that need review.

            kandi-License License

              OSMBonusPack does not have a standard license declared.
              Check the repository for any license declaration and review the terms closely.
              OutlinedDot
              Without a license, all rights are reserved, and you cannot use the library in your applications.

            kandi-Reuse Reuse

              OSMBonusPack releases are not available. You will need to build from source code and install.
              Build file is available. You can build the component from source.
              OSMBonusPack saves you 3032 person hours of effort in developing the same functionality from scratch.
              It has 6535 lines of code, 577 functions and 55 files.
              It has high code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed OSMBonusPack and discovered the below as its top functions. This is intended to give you an instant insight into OSMBonusPack implemented functionality, and help decide if they suit your requirements.
            • Get the road points
            • Builds the leg information
            • Builds the instructions for the roads
            • Decode a Google - encoded polyline
            • Search for POI search
            • Convert a JSONObject to a GeoPoint object
            • Retrieve elements in a KML folder
            • Build a Geometry from a JSON object
            • Draw the rectangle
            • Precompute points
            • Get a URL to search for a OSM tag
            • Generate a path along with the given parameters
            • Gets an address from a GeoJSON representation
            • Draw the shadow
            • Get the road points
            • Fetch the thumbnail
            • Get a URL to retrieve a URL for a specific OSM tag
            • Retrieves the GeoNames XML from the GeoNames API
            • Parse a string of geo coordinates
            • Download a file from the given tile source
            • Handles the end of an XML element
            • Returns the clustering of the grid
            • Creates a new GroundOverlay with the given coordinates
            • End element
            • Parses a KMZ file
            • Use this API to retrieve an address from a specified location
            Get all kandi verified functions for this library.

            OSMBonusPack Key Features

            No Key Features are available at this moment for OSMBonusPack.

            OSMBonusPack Examples and Code Snippets

            No Code Snippets are available at this moment for OSMBonusPack.

            Community Discussions

            QUESTION

            How do I select a language in OSRM's RoadManager
            Asked 2022-Feb-24 at 15:44

            I need to force OSRM to switch the language in road.mNodes.mInstructions to English in order to work with English TTS. How do I achieve that in Kotlin? I'm using OSRMRoadManager from OSMBonusPack.

            ...

            ANSWER

            Answered 2022-Feb-23 at 13:18

            I don't see an obvious answer. Basically, you need to change the way DIRECTIONS hashmap is initialized.

            Suggestion : you could subclass OSRMRoadManager, adapting buildInstructions(int maneuver, String roadName), to use your own DIRECTIONS object.

            If you see a simple change to do inside the lib (adding a "language" option somewhere), don't hesitate to push a PR.

            Source https://stackoverflow.com/questions/71228955

            QUESTION

            Reasons for using OSMBonusPack versus OSRM (Open Source Routing Machine)?
            Asked 2020-Aug-20 at 16:11

            UPDATE to question:

            If we are running our own database and tile server, do we also need to run our own instance of OSRM to get routing via OSMDroid using OSRMRoadManager? OR if not running our own, pull from another OSRM instance somewhere?

            We are setting up an instance of Open Street Map data and a tile server on our own server, that will provide data for a mobile app.

            My question is about routing: is there reason to set up Open Street Routing Machine / OSRM (http://project-osrm.org) vs using something like OSMDroid (https://github.com/osmdroid/osmdroid) or OSMBonusPack (https://github.com/MKergall/osmbonuspack)? OSRM seems to have some pretty heavy server requirements, but will it have other benefits, perhaps by keeping things easier on the front end?

            We are creating our own OSM server with the hope/expectation that we will start generating large amounts of traffic, and we are trying to understand the best strategy for the routing. Most of the traffic will be through either our mobile app or mobile browsers. For the routing, we don't really need much more than a polyline connecting start and end points via some reference points that will we determine to force the route through certain streets. Thanks for any help strategizing this out.

            ...

            ANSWER

            Answered 2020-Aug-20 at 16:11

            OK, so I figured it out. Hopefully my confusion will help others find out this answer more quickly.

            For connecting a different tile service just for visualization, there is already a class XYTileSource.java in OSMDroid. But for getting to your own routing data (your own instance of OSRM) via the OSMBonusPack, you work with the class OSRMRoadManager, perhaps changing the string that points to the OSRM demo site, but also just using setService() with the url to your own OSRM server.

            Source https://stackoverflow.com/questions/63469745

            QUESTION

            Osmdroid - change the default (white) color of the direction arrow (or how to customize the icon)
            Asked 2020-Mar-23 at 16:21

            After upgrading from osmdroid:6.03, mapsforge 0.8, osmbonuspack 6.4 to the newest versions, I can work with both the v4 and v5 Mapsforge maps. Thank you so much for thes great libraries I use for 6 years!

            Everything is working fine. When not moving the yellow man is drawn, but when moving the direction arrow turns out to be WHITE. When moving I can see that the center of the map is redrawn and thus changing. How can I change the arrow back to a more visible arrow?

            These are the versions of the libraries:

            ...

            ANSWER

            Answered 2020-Mar-23 at 16:19

            About 1.5 years ago the standard yellow man (current position) and green direction arrow were removed from the Osmdroid package. They changed this icon because they only had one dpi version and not having a version for each dpi folder (h,m,xh,xxh,xxxh).

            So, you have to add your own version. Advised was to take from material.io the two-tone "navigation" 48 version for the direction arrow. When you change the direction arrow, as shown below, you also need to provide an icon for the current location.

            After retrieving those items, I converted them to bitmaps. You can use online tools for that like www.online-convert.com.

            Finally you can add the following code to your app:

            Source https://stackoverflow.com/questions/60792234

            QUESTION

            Is there a way to activate tags with osmdroid?
            Asked 2020-Mar-13 at 09:02

            I am currently building an Android app for firefighters in which I am using osmdroid to create an editable map view. On OSM there are tags you can activate to show certain types of points of interest, and especially there are tags for firefighters (https://wiki.openstreetmap.org/wiki/Key:emergency), that seems essential for my app.

            I looked at OSMbonuspack's POIs, but that only works for building types, and I didn't find an option for those in osmdroid.

            Does anyone know of a way to do it?

            ...

            ANSWER

            Answered 2020-Mar-13 at 09:02

            You can use OSMBonusPack's OverpassAPIProvider to show POIs with any tags you like. The KML example shows how to display speed cameras (highway=speed_camera). For showing firefighter features just replace it with amenity=fire_station, emergency=fire_hydrant or similar tags.

            Source https://stackoverflow.com/questions/60667446

            QUESTION

            Slow application if the number of Markers increases
            Asked 2020-Mar-12 at 12:57

            On an OpenStreetMap map with osmDroid and osmBonusPack I display markers and by clicking on it a bubble opens, everything works as I want up to a certain number of markers. The more markers I put on the map, the less responsive the application is. For example with 1000 markers, it takes 6 seconds for the Toolbar menu to appear and as much for moving to another activity such as a simple text display. My code.

            ...

            ANSWER

            Answered 2020-Feb-13 at 16:13

            Markers are quite heavyweight or at least they have been some time ago when I had similar performance issues as you have. There might be a potential to optimize them, but that would mean modifying the Osmdroid library and creating a pull request with such changes.

            Try to do some profiling to make sure the problem is not in your code but in the library (https://developer.android.com/studio/profile/cpu-profiler.html).

            Pay attention to how you read the data from the databse - don't do it on main thread and measure how long it takes to make sure it's not the main issue.

            Try SimpleFastPointOverlay from Osmdrid - it is supposed to be optimized for higher numbers of Markers (they have to have the same icon, though). Even if its not flexible enough for your needs, try it out to verify Markers are the real problem. After that you can look at the source code and use it as a learning material to implement your own custom Overlay.

            Source https://stackoverflow.com/questions/60209849

            QUESTION

            View not displayed when created from SearchView onQueryTextSubmit
            Asked 2020-Jan-11 at 07:50

            I want to search for locations in a searchview and display the location on a map with a marker. When the marker is clicked, I want to show a infowindow with the location name, etc. I use OSMDROID and the OSMBONUSPACK.

            The Problem: The marker is shown as intented and its onClickListener does fire, but the infowindow is not shown if I call my searchLocationOnMap from onQueryTextSubmit. How to fix that?

            Does not work(no info window shown if marker is clicked):

            ...

            ANSWER

            Answered 2020-Jan-02 at 10:41

            I solve it with something like this

            Source https://stackoverflow.com/questions/59561849

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install OSMBonusPack

            You can download it from GitHub.
            You can use OSMBonusPack like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the OSMBonusPack component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/grote/OSMBonusPack.git

          • CLI

            gh repo clone grote/OSMBonusPack

          • sshUrl

            git@github.com:grote/OSMBonusPack.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Consider Popular Java Libraries

            CS-Notes

            by CyC2018

            JavaGuide

            by Snailclimb

            LeetCodeAnimation

            by MisterBooo

            spring-boot

            by spring-projects

            Try Top Libraries by grote

            Transportr

            by groteKotlin

            osm2gtfs

            by grotePython

            BlitzMail

            by groteJava

            seedvault

            by groteJava

            GIFmaker

            by groteShell