Get shortest path among points [closed] - java

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 days ago.
Improve this question
I have following situation. We have many points in database with (longitude, latitude). I'm using postgres with postgis.
Table
create table atm
(
id bigint,
name varchar(255),
latitude double precision,
longitude double precision
);
also I didn't know add another column to table for analysis shortest path. I have current location(longitude, latitude).
I have to analysis shortest location over many points from current location. Who can help me to solve this problem!!!

Related

Does anybody have a Java algorithm that given a document, and a set of terms, find the shortest sequence of the document that contains all the terms [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed yesterday.
Improve this question
The document and the terms are both a List
I don't know why this is so hard for me, but I can't seem to understand how this works.

Create 64 Rows And 64 Columns Table Application Using ROOM DATABASE In android Studio [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 days ago.
Improve this question
I want to create an app where i can Store 64 questions and each question will have its own 64 answers.
If i want a particular answer of any one particular question, So there i just type question Number corresponding Answer Number then i can get particular cell data..
Example:-
Question Number 5 Answer Number 7......
Please help me to provide best or efficient way to develop this app....

How to store user data and when the data is repeated it should show error [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
Example
if there are 4 slots named A1,B1,C1,D1. If first user enters A1 and when the second user enter the same slot it should error it has already been chosen.
The built-in class java.util.HashMap can do that. Read the docs, perhaps search for some usage examples :)

I should get back distance, duration and directions as result when i pass an intent with origin and destination in android studio [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
I am working on an android application in which during the registration of the user i will get his location and i had a starting point.
I am thinking of sending an intent to Google maps and getting back required result from it. How can i extract the distance, duration and directions from the result of intent?
Is there any other way better than this?
You can user Google Direction API. It has many options like direction, distance (walking, driving etc). See example here.

I want to make math operations with data from an MySQL table (JAVA) [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
This is my question. The follwing is my current Table in MySQL.
TABLE
I have 2 INT columns precio (price) and cant (quantity) and I want to multiply these two tables.
Example: 10 * 8 = 80
10 * 6 = 60
and so on, then I want to make a sum with all the results of the operations and print the total.
Does anyone know which MySQL commands I can use?
Any help would be greatly apreciated.
Your Query would be like below :
SELECT SUM( precio * cant ) as total FROM TABLE_NAME WHERE 1 = 1;

Categories