Location of specific points on maps

9

Hello, I'm developing an application that works with the JXMapViewer library in the java language, one of the proposals is to find geolocation points (eg, stops / snack bars) in a certain street that the user selects.

Location geolocation information and user location are known information. The problem is to restrict the search to only the street where the user selects using the library. I do not know how to check if the point is on the particular street.

Example geolocation already provided:

GeoPosition ponto = new GeoPosition(ponto.getLatitude(), ponto.getLongitude());

Does anyone who has ever worked with similar or similar problems report an example?

    
asked by anonymous 01.07.2015 / 01:15

1 answer

1

Conceptually speaking what you should do is to first input the class that indicates the coordinates of the user's geographical location, returning to the method the respective longitudinal and magnitude coordinates. This can be done by tracking the user's position, or, for example through the use of a graphic user interface (GUI), for this you must select the points, and have a function that validates it.

To select the street, you should very briefly select the street geolocation variable. and in doing so create a function that selects the street, if it is not in that library, there is certainly the possibility of finding a method or an outside class to do this. in the last instance, you can implement the root class. I hope I have been helpful.

    
11.09.2015 / 15:37