This is an Offline Maps Server written in Go. The server serves tile and terrain data for offline use in map applications.
The Offline Maps Server is a Go application that serves tile and terrain data for offline map applications. It exposes HTTP endpoints for retrieving tiles and terrain data based on the given parameters.
To run the Offline Maps Server on your local machine, you need to have Go installed. Follow these steps:
-
Clone the repository:
git clone https://github.com/yourusername/offline-maps-server.git cd offline-maps-server
-
Install dependencies:
go get github.com/gorilla/mux
-
Build the project:
go build
After building the project, you can run the application:
./sertile <port> <offline-map-folder-path>
The server will start and listen on the specified port, serving tile and terrain data.
The Offline Maps Server exposes the following API endpoints:
GET /{tilePattern}
: Retrieves tile data based on the given pattern.GET /{terrainPattern}
: Retrieves terrain data based on the given pattern.GET /terrain/layer.json
: Retrieves the JSON file containing layer information.