Skip to content

MarinX/go-mercedes-dealer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mercedes-Benz Dealer API library for go

GoDoc License MIT

Description

Whether you want to show the nearest Mercedes–Benz dealer or partner on map or want to provide reliable dealer information.

Features

  • geolocation data for showing dealers and service partners on map
  • contact information (address, telephone number, e-mail address, website etc.)
  • opening hours
  • details on services provided (sales, service, parts, used car sales)

Precondition

You will need an API-Key to use this library. Signup for api at developer.mercedes-benz.com

Installation

go get github.com/MarinX/go-mercedes-dealer

Documentation

Function Description
GetCountries(page int, pageSize int) Get the supported countries for the Dealer API
GetDealers(filterParams DealerParam) Search for Dealers
GetDealer(dealerId string) Search for specific dealer

Example

// Find dealers near city of Zagreb
dealers, err := api.GetDealers(&DealerParam{
		City: "Zagreb",
})
// You can also specify other values like radius, lat, lng etc.
// Look at the godoc reference for more information about DealerParam

// Get single dealer by the code - Emil Frey
singleDealer, err := api.GetDealer("GS0038375")

// The countries that are supported by the Dealer API will be provided by the countries resource
// Get the first page with limit of 5 results
countries, err := api.GetCountries(1, 5)

License

This library is under the MIT License

Author

Marin Basic

Releases

No releases published

Packages

No packages published

Languages