Forum Discussion

AlexisGonzalez's avatar
AlexisGonzalez
Frequent Visitor
6 years ago

road map segments using point locations

hello,  I need to represent a segment (street or roadway) on a map based on a sequence of points (latitude and longitude), I attached a table so you can see an example of the data I'm working with, I don't know if there is any app in power bi to do it or if I have to use "R" to do it whatever the case I would like someone to show me. how to do it.
in the table, the first column "TMC_Code" works as a unique ID and will have a start point (latitude and longitude) and an endpoint (latitude and longitude), in case several "TMC-Code" have the same "Name_Segment" means that the (latitude and longitude) of each "TMC_Code" must be followed by each other.
In case you do not understand, I can give more details than I want.
Thanks a lot

TMC_CodeName_Segmentstart_latitudestart_longitudeend_latitudeend_longitudemiles
102-50531US-1/Biscayne Blvd to NW 3rd St25.7848-80.19425.7846-80.20.35926
102-11346US-1/Biscayne Blvd to NW 3rd St25.7848-80.19225.7848-80.1940.10351
102-11347US-1/Biscayne Blvd to NW 3rd St25.7849-80.19125.7848-80.1920.10541
102-11348US-1/Biscayne Blvd to NW 3rd St25.7849-80.18925.7849-80.1910.0748
102P12299N Miami Ave to US-1/Biscayne 25.7883-80.19525.7883-80.1940.0212
102+12300N Miami Ave to US-1/Biscayne 25.7883-80.19425.7883-80.190.29702
102P12300N Miami Ave to US-1/Biscayne 25.7883-80.1925.7883-80.1890.02806
102N12300US-1/Biscayne to N Miami Ave25.7883-80.18925.7883-80.190.02806
102-12299US-1/Biscayne to N Miami Ave25.7883-80.1925.7883-80.1940.29702

1 Reply