i have to develop a routing system with open street maps for my second year project (part of the project). I cannot use any external API's for routing. I understand .osm files and I was able to convert them to postgresql format using osm2po and create a database out of it but after this I am clueless. I have researched alot but cannot find any proper help on this topic. Any advice will be awesome.
If you are just focussing on developping an new algorithm, you might have a look at the Trafficmining framework that does all the parsing etc. for you and you just need to code the nessesary java components for your custom behaviour.
You didn't really tell us where you are stuck. But I suggest starting to read the OSM wiki about routing and tags for routing. Looking at one of the many online routers and offline routers for OSM will get you some ideas, too.
Related
I am trying to find a java library that will give me the ability to pull a user's Github teams based on their log in email. I am creating the backend for a website and would like the user to have the option to pick their teams from a drop down. I have looked through multiple API documentations, including Github's API
but I cannot figure out how to use this in my java code. Does anyone have any good library recommendations for this implementation? Thank you!
I found a GitHub wrapper for the API and implemented this into my code.
I was searching through internet but I didn't get complete answer, so i'm asking here. What ways can we use to store data in the internet and get it to Android application? I know about JSON, XML Parsing or frameworks like Parse.com etc. but are there any other ways?
Thanks in advance, it would help me a lot.
It's hard to see which option is best since the requirement is not clear.
For instance, how big is the data you want to access? How frequently?
If you just want to make it works now. An easy way I know is to integrate with AmazonS3 server who also provides a lib for client to integration.
You don't need know the detail of the transition, just put the path.
http://aws.amazon.com/s3/
By the way, for personal user, it's free.
I'm trying to build an android app that will log into a website, scrape the website for data specific to the user, then format that data nicely on a mobile screen.
I've noticed that there are several similar questions to my own, and after reading some of the documentation, I am still very confused as to how I should go about this.
Here's what I know
The site that I want to log into utilizes asp.net and the login.aspx uses POST for the login form.
There is no API for this website
There is also no single sign on
I'm very new to Android and a novice JAVA programmer at best. Will someone please help me carve the path of research that I need to do in order to write this app? I feel that I mostly need help with connecting to the website and getting the data, I'll be able to figure out the layouts and formatting myself.
I am more than willing to research and read whatever is necessary, but I would like to minimize any irrelevant information that would ultimately lead to more confusion.
Thank you in advance for the help
For the purpose of accessing the website all you need to know about is HTTP. It doesn't matter whether your target website is built with PHP or ASP etc. As you're only concern is how to communicate with the website through HTTP which is independent of technology used by the website. You can try wikipedia for descriptions of these methods.
It might be worthwhile reading the Java URL tutorials for how to use Java classes. As regards extracting the data itself you might want to read up on Parsers. This link might give you some first ideas.
I'd use the Jsoup
API. I've posted many many threads on that issue. This'll probably help you login. I don't know how android manages SSL certificates. So that you'll have to research on your own. But this right here is a good start.
Jsoup Cookies for HTTPS scraping
I am interested in visualising data from dbpedia in flash but I am a little out of my depth technically...
I know a bit of actionscript, javascript and some php but I'm not familiar with SPARQL or java.
The documentation I can find on it is a little over my head.
I have a couple of questions before I totally ruling it out:
• Has anyone come across an example/tutorial for accessing dbpedia data through flash?
• Im a little hazy on how you work with dbpedia. Do you download the entire database or can you connect to a database on their server?
Any advice would be appreciated.
Thanks
You can download a lot of data here without needing to know SPARQL. It's in rdf triple format, but that should be relatively easy to parse and add to your own database. Or if you want to do focused queries, you can use the link that you found.
As far as visualization there are quite a few good libraries available in Flash/Javascript. In flash I recommend Flare. In Javascript the following are worth looking into:
Javascript InfoVis Toolkit
Protovis
Processing.js
You may want to check the DBpedia RelFinder [1]. It is an open source project [2] written in adobe flex that visualizes the relation between two DBpedia resources.
It connects to the DBpedia SPARQL Endpoint to retrieve information.
[1] http://relfinder.dbpedia.org/
[2] http://code.google.com/p/relfinder/
Sheesh talk about limited information! I'm trying to get my Android application to connect to an online database to access information. There's quite a bit of info including geotags and these are going to be mapped on my app. The developer site has the very informative piece of information:
You can use the network (when it's available) to store and retrieve data on your own web-based services. To do network operations, use classes in the following packages:
java.net.*
android.net.*
Like I said in my previous question, I'm still very much an android newbie, and trying to remember my java oop from college is slow. Does anyone have an example of how this might work, or how I could implement it? I wouldn't mind even connecting to a local xml file, if I could find a good example of how to do that!? Am I just looking in all the wrong places?!
Help. Please!
T
How do you plan to connect to the database?
Android allows you do to plain socket communication which you can refresh your knowledge of here:
http://java.sun.com/developer/onlineTraining/Programming/BasicJava2/socket.html
Another method would be to put up a REST type service and respond with XML. SAX is commonly used for XML parsing in Android:
http://www.saxproject.org/
You can use SAXParser to parse XML from the net. Here's a tutorial on how to use the same.