Commit Graph

47 Commits

Author SHA1 Message Date
13beaeaf73 removed old method, changed some speeds 2023-04-09 17:14:14 +02:00
ea7ce1f630 Changed/Fixed Namespaces 2023-04-09 17:06:45 +02:00
fc5d388ecd Dispose of Region-filestream 2023-04-09 16:22:22 +02:00
8813023cd6 Created seperate PathNode class for Json Serialization 2023-04-06 14:27:25 +02:00
3e23635cd1 Serialize Path for API 2023-04-06 02:22:03 +02:00
20d4da9e6f Changed to JsonSerialization to permanently store regions. 2023-04-06 01:29:30 +02:00
8dd63411ea Changed some speedvalues for cars and pedestrians (to allow use of mis-qualified roads) 2023-04-01 18:28:21 +02:00
0f0f4182ac Region Size 0.025f 2023-04-01 18:08:59 +02:00
87e260562f Changed Regionsize to 0.01f 2023-04-01 15:53:51 +02:00
2826ff2502 Fixed deserialization issue with wrong default values
ToString() uniform
2023-04-01 14:42:49 +02:00
8cf13efae3 code clean 2023-04-01 14:21:58 +02:00
b3da6936da Fixed return of GetTag to return value of searched Tag. 2023-04-01 14:21:39 +02:00
312536f0c0 ToString() adjustment 2023-04-01 14:21:11 +02:00
556d4b1ffb ToString() adjustment 2023-04-01 14:19:36 +02:00
0bfc120ede Region no longer contains ways. Ways are Edges added to nodes.
Combined outputfiles into single Regionfile.
2023-04-01 13:18:54 +02:00
806dcf98c9 Renamed OsmWay -> OsmEdge again
Prevented duplicate writes of Tags for way
2023-04-01 01:47:56 +02:00
9dc282253d Removed TagType.EMPTY (now returns null instead)
AddTag(ulong, KeyValuePair) is now only Wrapper of AddTag(ulong, Tag)
AddTag now checks if tags already exist
2023-04-01 01:31:58 +02:00
e7119b22ae Added ways to Region 2023-04-01 00:39:49 +02:00
cd1584eee7 Adjusted ToString() to include startId 2023-04-01 00:39:37 +02:00
ac77708834 Renamed OsmEdge to OsmWay and added startnodeid (for serialization) 2023-03-31 21:55:43 +02:00
255d924dc4 Made GetRegionHashCode(Coordinates) wrapper
public static ulong GetRegionHashCode(Coordinates coordinates) now calls GetRegionHashCode(coordinates.latitude, coordinates.longitude)
2023-03-31 21:55:12 +02:00
0d4597c12c Made Region Serializable 2023-03-31 21:54:32 +02:00
6a2ddf3277 Added way to add Tags from KeyValuePair 2023-03-31 21:54:01 +02:00
ac1ac62a00 Combining Datastructures and Serialization
//TODO
2023-03-30 18:24:57 +02:00
d7469aa190 Changed Regionhashing and OsmDatastructure with OsmDatastructure.Graph 2023-03-14 17:00:59 +01:00
d3680565fc Added currentPathLength to OsmNode 2023-02-08 19:09:46 +01:00
9d2be7d972 Moved Utils.cs to OSMDatastructure 2023-02-08 19:05:54 +01:00
f15171a9f1 Fixed AStar Weight-assignment
OSMEdge.cs:
renamed speedped, speedcar
2023-02-08 19:05:13 +01:00
d18e4f5abf OsmNode.cs:
Fixed ToString() no previous node
2023-02-08 18:49:47 +01:00
e57912c589 OSMEdge.cs:
+ GetWeight()
+ override toString()
  fixed maxSpeedValue 255 -> returns now empty
2023-02-08 18:49:21 +01:00
9444e2ac8e Override ToString() 2023-02-08 18:08:49 +01:00
c182818aff enum wayType now typeof byte
prevented waytype.EMPTY in tags
2023-02-08 18:08:42 +01:00
5f4e2bb5f0 Added Override for Equals() GetHashCode() ToString() 2023-02-08 18:08:01 +01:00
31b2810178 Fixed bugs with byte[] sizes 2023-02-08 18:00:19 +01:00
bb0dd03e0f Override GetHashCode() 2023-02-07 23:53:25 +01:00
79babc036f Housekeeping 2023-02-07 23:53:07 +01:00
4057554c7d Added constructor with tags import 2023-02-07 23:52:57 +01:00
0a9d5cfdfb Removed unnessecary inheritance 2023-02-07 23:52:23 +01:00
e265c56bce Datastructure rewrite 2023-02-06 17:32:55 +01:00
2c18162398 tags adding TryAdd instead of Add 2023-02-05 20:45:53 +01:00
f868f5ba2d Removed unesseccary console clutter 2023-02-05 20:45:33 +01:00
e3dabf8cb7 override Equals with check if lat and lon are equal 2023-02-05 20:03:33 +01:00
3350d8e3b9 Added GetNode(Coordinates coordinates)
Added GetNode(ulong id)
Instead of returning null in LoadRegion now throw an exception when file is not found.
Added some Method descriptors
2023-02-05 20:02:22 +01:00
8c8aadc2e1 Split highwayType.cs into multipleFiles and added most common tags 2023-02-05 20:00:00 +01:00
27cce159a4 Moved RegionManager inside of Importer as RegionStruct,
Moved Regionsize var to Region
2023-02-03 23:34:51 +01:00
7d3d46c505 Moved ByteConverter to Datastructur 2023-02-03 23:33:43 +01:00
311afcc02f Split into Datastructure, Added ByteConverter, Full Split & Load 2023-02-03 21:13:51 +01:00