Bridges-Java  3.4.3
Bridges(Java API)
Public Member Functions | Package Attributes | List of all members
bridges.data_src_dependent.OsmVertex Class Reference

Detailed Description

this is a class that defines an OpenStreet Map node or vertex

Objects from this class are typically not created by the user but contained in the OsmData object returned by bridges::connect::DataSource::getOsmData()

Check out how to use OSM data at: https://bridgesuncc.github.io/tutorials/Data_OSM.html

Author
Erik Saule, Kalpathi Subramanian,
Date
12/26/20

Public Member Functions

 OsmVertex (double latitude, double longitude)
 
double getLatitude ()
 
void setLatitude (double latitude)
 
double getLongitude ()
 
void setLongitude (double longitude)
 
double[] getCartesian_coord ()
 

Package Attributes

double longitude
 

Constructor & Destructor Documentation

◆ OsmVertex()

bridges.data_src_dependent.OsmVertex.OsmVertex ( double  latitude,
double  longitude 
)

constructor for OsmVertex

Parameters
latitudedouble, latitude of vertex
longitudedouble, longitude of vertex

Member Function Documentation

◆ getCartesian_coord()

double [] bridges.data_src_dependent.OsmVertex.getCartesian_coord ( )

get cartesian coordinates of vertex, translated from the latitude and longitude of the vertex.

Returns
double[], {x, y}

◆ getLatitude()

double bridges.data_src_dependent.OsmVertex.getLatitude ( )

get latitude of vertex

Returns
double

◆ getLongitude()

double bridges.data_src_dependent.OsmVertex.getLongitude ( )

get longitude of vertex

Returns
double

◆ setLatitude()

void bridges.data_src_dependent.OsmVertex.setLatitude ( double  latitude)

set latitude of vertex

Parameters
latitudedouble

◆ setLongitude()

void bridges.data_src_dependent.OsmVertex.setLongitude ( double  longitude)

set longitude of vertex

Parameters
longitudedouble

Member Data Documentation

◆ longitude

double bridges.data_src_dependent.OsmVertex.longitude
package

The documentation for this class was generated from the following file: