Skip to content

Using Dumpers #16

Closed
Closed
@mackhankins

Description

@mackhankins

Have you considered adding the dumpers feature? Any idea how to implement this?

Activity

toin0u

toin0u commented on Dec 21, 2014

@toin0u
Member

Hi @mack-hankins,

Thanks for your message, why not it can be a good idea actually ? You're welcome to make a PR if you want :)

If you need a dumper asap just instantiate it, something like this should work:

//...
try {
    $geocoded = Geocoder::geocode('copenhagen');
    $dumper = new \Geocoder\Dumper\GpxDumper();
    $strGpx = $dumper->dump($geocoded);
    echo $strGpx;
} catch (\Exception $e) {
    // No exception will be thrown here
    echo $e->getMessage();
}
toin0u

toin0u commented on Dec 22, 2014

@toin0u
Member

@mack-hankins Maybe should we provide a facade factory for dumpers, what do you think ?

mackhankins

mackhankins commented on Dec 22, 2014

@mackhankins
Author

@toin0u I think that would be the best approach. I don't know if I have time for a pull request, but your solution worked for now.

toin0u

toin0u commented on Dec 22, 2014

@toin0u
Member

Ok let's keep this open and I'll try to find time for that :) Anyway thanks for reporting this ! Merry Christmas :)

added this to the 0.7 milestone on Sep 30, 2016
self-assigned this
on Sep 30, 2016
mikebronner

mikebronner commented on Oct 1, 2016

@mikebronner
Member

This will be available in the next release. :) Should be forthcoming shortly.

8 remaining items

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions

    Using Dumpers · Issue #16 · geocoder-php/GeocoderLaravel